We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6f43da commit 87b0b37Copy full SHA for 87b0b37
1 file changed
test/SerialIOTest.cpp
@@ -6469,11 +6469,19 @@ void unfinished_iteration_test(
6469
*/
6470
it5.setAttribute("__openPMD_internal_fail", "asking for trouble");
6471
auto it10 = write.writeIterations()[10];
6472
+ Dataset ds(Datatype::INT, {10});
6473
auto E_x = it10.meshes["E"]["x"];
6474
auto e_density = it10.meshes["e_density"][RecordComponent::SCALAR];
6475
auto electron_x = it10.particles["e"]["position"]["x"];
6476
auto electron_mass =
6477
it10.particles["e"]["mass"][RecordComponent::SCALAR];
6478
+
6479
+ RecordComponent *resetThese[] = {
6480
+ &E_x, &e_density, &electron_x, &electron_mass};
6481
+ for (RecordComponent *rc : resetThese)
6482
+ {
6483
+ rc->resetDataset(ds);
6484
+ }
6485
}
6486
auto tryReading = [&config, file, encoding](
6487
Access access,
0 commit comments