-
Notifications
You must be signed in to change notification settings - Fork 200
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
Diagnostics: Fix Position Selection #4914
Diagnostics: Fix Position Selection #4914
Conversation
f172beb
to
4531519
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.
This is now much clearer!
I tested in 2D and 3D -- seems to work as expected
Thanks @ax3l ! Would you have time to check the |
1f45292
to
20addda
Compare
If a user specifies `<diag_name>.<species_name>.variables` without including particle position arguments we now warn.
20addda
to
c734171
Compare
Continue to write defaults for coarse and fine position of omitted dimensions to zero.
f59e17b
to
b670db8
Compare
@RemiLehe when you have a second, can you approve this for the release? :) |
std::map<std::string, int> existing_variable_names = pc->getParticleComps(); | ||
#ifdef WARPX_DIM_RZ | ||
// we reconstruct to Cartesian x,y,z for RZ particle output | ||
existing_variable_names["y"] = PIdx::theta; |
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.
This is a hack to have y
enabled and de-selecting was already broken before.
#4917 will do a general overhaul of all this logic and remove this assignment.
* Diagnostics: Warn w/o Positions If a user specifies `<diag_name>.<species_name>.variables` without including particle position arguments we now warn. * openPMD: Skip 0-positions for deselected comps * Clang-Tidy: Braces * Update Examples * RZ: x,y,z * Fix: openPMD Low-D position/positionOffset Continue to write defaults for coarse and fine position of omitted dimensions to zero.
<diag_name>.<species_name>.variables
without including particle position arguments we now warn.none
Follow-up to #4653