Remove dummy dataset writing from RecordComponent::flush()#528
Remove dummy dataset writing from RecordComponent::flush()#528ax3l merged 2 commits intoopenPMD:devfrom
Conversation
|
CI seams unhappy. |
|
The problem is with the
Relevant part of the test code: Dataset dset = Dataset(Datatype::DOUBLE, {2});
{
Series o = Series("../samples/subdir/serial_fileBased_write%T." + backend, AccessType::CREATE);
ParticleSpecies& e_1 = o.iterations[1].particles["e"];
e_1["position"][RecordComponent::SCALAR].resetDataset(dset);
e_1["positionOffset"][RecordComponent::SCALAR].resetDataset(dset);
o.iterations[1].setTime(1.f);
ParticleSpecies& e_2 = o.iterations[2].particles["e"];
e_2["position"][RecordComponent::SCALAR].resetDataset(dset);
e_2["positionOffset"][RecordComponent::SCALAR].resetDataset(dset);
o.iterations[2].setTime(2.f);
ParticleSpecies& e_3 = o.iterations[3].particles["e"];
e_3["position"][RecordComponent::SCALAR].resetDataset(dset);
e_3["positionOffset"][RecordComponent::SCALAR].resetDataset(dset);
o.iterations[3].setTime(3.f);
}Since no data is ever written, the ADIOS variable is not created in storage and not read back in. Implementing a default as you suggest would be equivalent to writing dummy data, just at a later point. |
be566c8 to
f6f75e7
Compare
This test tested exactly the behaviour that this branch removes. Also remove a number of duplicate tests.
f6f75e7 to
2f67a6c
Compare
See #489 and #512 for a description. The exactly same thing happens also in
RecordComponent.cpp. PR #512 did not catch this.