Skip to content

Commit

Permalink
Fix unfinished_iteration_test
Browse files Browse the repository at this point in the history
specify some unspecified datasets
  • Loading branch information
franzpoeschel committed Feb 28, 2023
1 parent f031bf8 commit f740cb4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/SerialIOTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6469,11 +6469,19 @@ void unfinished_iteration_test(
*/
it5.setAttribute("__openPMD_internal_fail", "asking for trouble");
auto it10 = write.writeIterations()[10];
Dataset ds(Datatype::INT, {10});
auto E_x = it10.meshes["E"]["x"];
auto e_density = it10.meshes["e_density"][RecordComponent::SCALAR];
auto electron_x = it10.particles["e"]["position"]["x"];
auto electron_mass =
it10.particles["e"]["mass"][RecordComponent::SCALAR];

RecordComponent *resetThese[] = {
&E_x, &e_density, &electron_x, &electron_mass};
for (RecordComponent *rc : resetThese)
{
rc->resetDataset(ds);
}
}
auto tryReading = [&config, file, encoding](
Access access,
Expand Down

0 comments on commit f740cb4

Please sign in to comment.