From 5863d6b4d9d7bdf1780879e5731a364b3149b732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Tue, 26 Mar 2024 12:49:18 +0100 Subject: [PATCH] Ensure that E.z is there --- examples/14_toml_template.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/14_toml_template.cpp b/examples/14_toml_template.cpp index e22fafc05d..10d775bf6f 100644 --- a/examples/14_toml_template.cpp +++ b/examples/14_toml_template.cpp @@ -119,7 +119,7 @@ void read() // Have to define the dataset for E/z as it is not defined in the template // @todo check that the dataset is defined only upon destruction, not at // flushing already - cloned.writeIterations()[0].meshes["E"]["z"].resetDataset( + cloned.writeIterations()[0].meshes["E"].at("z").resetDataset( {openPMD::Datatype::INT, {openPMD::Dataset::UNDEFINED_EXTENT}}); }