-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map mesh quantity to tracer particles in output HDF5 snapshot #336
Conversation
@hfhsieh Thanks for the contribution! Before review, can you add a test problem (or modify |
@ChunYen-Chen Could you help review it after @hfhsieh adds a unit test for this new feature? Thanks! |
4b84778
to
26208e6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR looks great. I only have some minor comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The updated test problem looks great. I only left some minor comments.
2af387c
to
3e71223
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hfhsieh This PR looks great! I only have some minor comments. Once they are addressed, I would be happy to merge it right away.
- Update
../doc/wiki
(this will be used to update the online wiki page directly; please consult @ChunYen-Chen if you need any help) - Mention
OPT__OUTPUT_PAR_MESH
in theParticleTest/README
@hyschive I have updated the PR based on your suggestions, except for the one regarding enabling I have also updated the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hfhsieh Minor comments added.
Usage:
OPT__OUTPUT_PAR_MESH = 1
inInput__Parameter
Input__Par_Mesh
Input__Par_Mesh
is located inexample/input
Done:
Mesh_Attr_*
in theParticle
structureOPT__OUTPUT_PAR_MESH
controlling whether to dump additional attributes mapped from mesh for tracer particlesInput__Par_Mesh
at runtimePrepare_PatchData()
Particle
group with name in the format ofMesh[FieldLabel]
__FLT_MAX__
Makefile_base
to include the new fileParticle/Par_Output_TracerParticle_Mesh.cpp
Future works:
Flu_DerivedField_BuiltIn.cpp
andFlu_DerivedField_User.cpp
Par_UpdateTracerParticle()
andPar_Output_TracerParticle_Mesh()
Related Issues: #334 #361