Open NAThompson opened 4 years ago
I never expected anyone to call adios BeginStep and EndStep without doing I/O. Apparently BP4 cannot handle empty steps. Is this a bug or unintended use of the API? It should be at line 123:
display_progress(double(j+1)/(M-1));
adios_engine.BeginStep();
adios_engine.Put(u_variable, u2.data(), adios2::Mode::Sync);
adios_engine.EndStep();
Hmm. That's a case we should have a test for... I'll self-assign that.
@pnorbert : Your change fixes the issue, and you are correct that it is not an intended use of the API.
So, depending on your priorities, might it be sensible to throw an exception on an empty step? In any case, I've added the low priority label.
The actual reason I had the step outside the if check was to give the Put
more time to operate (I didn't have it in sync mode before the bug report), and this gave me an opportunity to screw up!
With
I run this code:
Then I run