File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments