From 7663d583ecc64778cfb427ae959d4c5245ec77ab 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 aea5cf90a7..c0ff44a092 100644 --- a/test/SerialIOTest.cpp +++ b/test/SerialIOTest.cpp @@ -6318,11 +6318,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 @@ -6331,6 +6334,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"];