Re-opening the same engine
Created by: kshitij-v-mehta
Can I re-open the same engine to write data? For example, is the following allowed?
call adios2_init(...)
call adios2_declare_io(io_obj,...)
do i=1,4
call adios2_open(engine, io_obj, "restart", adios2_mode_write,...)
!! declare variable and write data
call adios2_close(engine,...)
end do
For the second iteration of the 'do' loop above, 'adios2_open' results in ADIOS2 open with new MPI_Comm: ERROR: IO Engine with name restart already created, in call to Open.
Does this mean a file can only be opened once? I am trying to write a checkpoint-restart file. At every iteration, the file must be overwritten with new data.