Skip to content

Commit f740cb4

Browse files
committed
Fix unfinished_iteration_test
specify some unspecified datasets
1 parent f031bf8 commit f740cb4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/SerialIOTest.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6469,11 +6469,19 @@ void unfinished_iteration_test(
64696469
*/
64706470
it5.setAttribute("__openPMD_internal_fail", "asking for trouble");
64716471
auto it10 = write.writeIterations()[10];
6472+
Dataset ds(Datatype::INT, {10});
64726473
auto E_x = it10.meshes["E"]["x"];
64736474
auto e_density = it10.meshes["e_density"][RecordComponent::SCALAR];
64746475
auto electron_x = it10.particles["e"]["position"]["x"];
64756476
auto electron_mass =
64766477
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+
}
64776485
}
64786486
auto tryReading = [&config, file, encoding](
64796487
Access access,

0 commit comments

Comments
 (0)