@@ -27,7 +27,8 @@ void particle_offset_without_extent()
2727 position_comp.storeChunk (std::move (data), {0 }, {5 });
2828
2929 auto offset_comp = e[" positionOffset" ][comp_id];
30- offset_comp.resetDataset ({openPMD::Datatype::INT, {}});
30+ offset_comp.resetDataset (
31+ {openPMD::Datatype::INT, {openPMD::Dataset::UNDEFINED_EXTENT}});
3132 offset_comp.makeConstant (0 );
3233 }
3334 write.close ();
@@ -57,11 +58,13 @@ void particles_without_any_extent()
5758 for (auto comp_id : {" x" , " y" , " z" })
5859 {
5960 auto position_comp = e[" position" ][comp_id];
60- position_comp.resetDataset ({openPMD::Datatype::INT, {}});
61+ position_comp.resetDataset (
62+ {openPMD::Datatype::INT, {openPMD::Dataset::UNDEFINED_EXTENT}});
6163 position_comp.makeConstant (0 );
6264
6365 auto offset_comp = e[" positionOffset" ][comp_id];
64- offset_comp.resetDataset ({openPMD::Datatype::INT, {}});
66+ offset_comp.resetDataset (
67+ {openPMD::Datatype::INT, {openPMD::Dataset::UNDEFINED_EXTENT}});
6568 offset_comp.makeConstant (0 );
6669 }
6770 write.close ();
@@ -84,7 +87,9 @@ void particles_without_any_extent()
8487 {
8588 for (auto const &component : record.second )
8689 {
87- REQUIRE (component.second .getExtent () == openPMD::Extent{});
90+ REQUIRE (
91+ component.second .getExtent () ==
92+ openPMD::Extent{openPMD::Dataset::UNDEFINED_EXTENT});
8893 }
8994 }
9095 }
@@ -152,7 +157,8 @@ void meshes_with_incomplete_extent()
152157 for (auto comp_id : {" y" , " z" })
153158 {
154159 auto comp = E[comp_id];
155- comp.resetDataset ({openPMD::Datatype::INT, {}});
160+ comp.resetDataset (
161+ {openPMD::Datatype::INT, {openPMD::Dataset::UNDEFINED_EXTENT}});
156162 comp.makeConstant (0 );
157163 }
158164 write.close ();
@@ -220,7 +226,9 @@ void meshes_without_any_extent()
220226 for (auto comp_id : {" x" , " y" , " z" })
221227 {
222228 auto comp = E[comp_id];
223- comp.resetDataset ({openPMD::Datatype::FLOAT, {}});
229+ comp.resetDataset (
230+ {openPMD::Datatype::FLOAT,
231+ {openPMD::Dataset::UNDEFINED_EXTENT}});
224232 comp.makeConstant <float >(0 );
225233 }
226234 write.close ();
@@ -241,7 +249,9 @@ void meshes_without_any_extent()
241249 auto E = read.snapshots ()[0 ].meshes [" E" ];
242250 for (auto const &component : E)
243251 {
244- REQUIRE (component.second .getExtent () == openPMD::Extent{});
252+ REQUIRE (
253+ component.second .getExtent () ==
254+ openPMD::Extent{openPMD::Dataset::UNDEFINED_EXTENT});
245255 }
246256 }
247257}
0 commit comments