You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow ADIOS files to be reopened in write mode in certain cases
Reopening files to append data is not supported by the ADIOS type.
However, users might reopen an existing file in write mode without
performing any actual write operations. In such cases, reopening
an ADIOS file in write mode is acceptable.
An error should only be returned when an actual append operation
is attempted on a reopened ADIOS file.
Copy file name to clipboardExpand all lines: src/clib/pio_darray.cpp
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2169,6 +2169,27 @@ int PIOc_write_darray_impl(int ncid, int varid, int ioid, PIO_Offset arraylen, c
2169
2169
"Writing variable (%s, varid=%d) to file (%s, ncid=%d) failed. The file was not opened for writing, try reopening the file in write mode (use the PIO_WRITE flag)", pio_get_vname_from_file(file, varid), varid, pio_get_fname_from_file(file), file->pio_ncid);
2170
2170
}
2171
2171
2172
+
if ((file->iotype == PIO_IOTYPE_ADIOS) || (file->iotype == PIO_IOTYPE_ADIOSC))
2173
+
{
2174
+
/* ADIOS type does not support open to append mode */
0 commit comments