From 0d084d13bf1eb894a1b9023a1c4aa7ed2a920a76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Mon, 29 Aug 2022 11:36:46 +0200 Subject: [PATCH] Fix tests in new schema Note: ADIOS2 needs at least one defined variable to find any more steps than only the first one. --- test/SerialIOTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/SerialIOTest.cpp b/test/SerialIOTest.cpp index 6b2a3210ec..26d884b611 100644 --- a/test/SerialIOTest.cpp +++ b/test/SerialIOTest.cpp @@ -6317,11 +6317,14 @@ void unfinished_iteration_test( std::string file = std::string("../samples/unfinished_iteration") + (encoding == IterationEncoding::fileBased ? "_%T." : ".") + ext; { + std::vector data{0, 1, 2, 3, 4}; Series write(file, Access::CREATE, config); auto it0 = write.writeIterations()[0]; it0.meshes["E"]["x"].resetDataset({Datatype::INT, {5}}); + it0.meshes["E"]["x"].storeChunk(data, {0}, {5}); auto it5 = write.writeIterations()[5]; it5.meshes["E"]["x"].resetDataset({Datatype::INT, {5}}); + it5.meshes["E"]["x"].storeChunk(data, {0}, {5}); ; /* * With enabled invasive tests, this attribute will let the Iteration @@ -6330,6 +6333,7 @@ void unfinished_iteration_test( it5.setAttribute("__openPMD_internal_fail", "asking for trouble"); auto it10 = write.writeIterations()[10]; it10.meshes["E"]["x"].resetDataset({Datatype::INT, {5}}); + it10.meshes["E"]["x"].storeChunk(data, {0}, {5}); it10.setAttribute("__openPMD_internal_fail", "playing nice again"); auto e_density = it10.meshes["e_density"][RecordComponent::SCALAR]; auto electron_x = it10.particles["e"]["position"]["x"];