CarpetIOHDF5: Don't set "delta" attribute to zero for zero-width components
Issue #2546
closed
Carpet’s HDF5 format outputs a delta
attribute that describes the grid spacing for each written chunk. Currently delta
is always set to zero for zero-width components, i.e. e.g. for 2d arrays. This confuses post-processing tools.
This pull request passes the actual grid spacing to the writer routine, and writes the correct grid spacing into the attribute.
The pull request is at https://bitbucket.org/eschnett/carpet/pull-requests/46 .
Comments (8)
-
-
Please apply.
-
- attached vacuum_2d.par
Demo parfile showing the issue in gxx.xyz.h5 where delta is reported as "0.5, 0.5, 0" without the patch (gxx.h5 is fine however).
-
- changed status to open
-
-
assigned issue to
-
assigned issue to
-
reporter -
reporter - changed status to resolved
-
reporter - changed status to closed
- Log in to comment
Please review.