Skip to content

Commit 4d24e15

Browse files
committed
Ensure that E.z is there
1 parent 328c2c2 commit 4d24e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/14_toml_template.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void read()
119119
// Have to define the dataset for E/z as it is not defined in the template
120120
// @todo check that the dataset is defined only upon destruction, not at
121121
// flushing already
122-
cloned.writeIterations()[0].meshes["E"]["z"].resetDataset(
122+
cloned.writeIterations()[0].meshes["E"].at("z").resetDataset(
123123
{openPMD::Datatype::INT, {openPMD::Dataset::UNDEFINED_EXTENT}});
124124
}
125125

0 commit comments

Comments
 (0)