Fix the meshesPath for openPMD 1.1
Remi Lehe
Branch: berkeleylab/atap-warp:fix_openPMD_11
Branch: berkeleylab/warp:master
Merged
Merged pull request
Merged in berkeleylab/atap-warp/fix_openPMD_11 (pull request #165)
Merged in berkeleylab/atap-warp/fix_openPMD_11 (pull request #165)
According to the openPMD standard 1.1, the openPMD file should contain the metadata
meshesPath
(which indicates where the fields are stored) if (and only if) the file contains field data.When implementing openPMD 1.1 (see https://bitbucket.org/berkeleylab/warp/pull-requests/164/conform-to-the-new-110-openpmd-standard/diff), I forgot to include this in the
BoostedFieldDiagnostics
, and this causes theopenPMD-viewer
to fail, when reading the corresponding file. The current PR writes the metadatameshesPath
in the functioncreate_empty_meshes
, which is used both inFieldDiagnostics
andBoostedFieldDiagnostics
.