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
Merge pull request #648 from E3SM-Project/dqwu/fix_adios_append_check
Reopening files to append data is not supported by the ADIOS type.
Returning an error when the user tries to append data to an existing
file in ADIOS BP format.
However, it is common for users to reopen existing files in write
mode without performing any actual write operations, which is
acceptable. An error will only be returned if an actual append
operation is attempted on a reopened ADIOS file.
Copy file name to clipboardExpand all lines: src/clib/pio_darray.cpp
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2169,6 +2169,29 @@ 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
+
#ifdef _ADIOS2
2173
+
if ((file->iotype == PIO_IOTYPE_ADIOS) || (file->iotype == PIO_IOTYPE_ADIOSC))
2174
+
{
2175
+
/* ADIOS type does not support open to append mode */
0 commit comments