-
Notifications
You must be signed in to change notification settings - Fork 122
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
Implementation of position attribute of Fields #682
Comments
Thank you for both reports. The attributes are indeed incorrect and will be fixed. |
I read the standard again, and I find it very confusing. It does not specify that this is about staggering. There is a confusing way to refer to cells or elements. I would not have guessed this was about grid staggering. Can you confirm that the staggered direction must have a value of 0.5 in this attribute? |
I have made changes locally to fix both the position issue and the timeOffset issue. Does this look ok to you?
|
Thanks for the quick fix, looks good to me! Regarding your queston: Yes, the position attribute is related either to the stagger or to the (half) iteration when the fields are dumped. Some codes perform half iterations to make sure that the fields are dumped without offset, some codes dont and this is what is saved here. Its designed in its own variable to make sure this possibly tiny offset is always resolved numerically, even if the absolute coordinates are large values. The definition is here:
from https://github.com/openPMD/openPMD-standard/blob/latest/STANDARD.md#mesh-based-records In Contrast the |
Fixed: 12dd7db |
Description
Same as #681 but for the field attribute
position
.I checked the field attributes
Ex
,Ey
,Bx
,By
,Bx_m
,By_m
,Jx
,Jy
and the attributeposition
was always(0,0)
for the same 2d test case as in #681 .position
is supposed to contain information of the spatial stagger.See also https://github.com/openPMD/openPMD-standard/blob/latest/STANDARD.md#mesh-based-records
To reproduce run the sample simulation with smilei v5.0 and check the output of
$ h5ls -rvd Fields0.h5/data/0000001800/ | grep -4 position
So do the position attributes contain wrong values or are ALL outputs really defined on the front cell boundary before being dumped? I filed this as a bug, because it was a bug for the temporal stagger, but maybe its correct here. I did not find where the spatial stagger of outputs is defined.
The text was updated successfully, but these errors were encountered: