CarpetIOHDF5: Don't set "delta" attribute to zero for zero-width components

Issue #2546 closed
Erik Schnetter created an issue

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)

  1. Log in to comment