From 91e4bcca335eb0113199058a401fb016b08e72da Mon Sep 17 00:00:00 2001 From: Lars Pastewka <lars.pastewka@imtek.uni-freiburg.de> Date: Wed, 1 Nov 2017 21:28:14 +0100 Subject: [PATCH] BUG: openfile is called multiple times, second call stopped code with 'at keyword requires use of append yes' --- src/USER-NETCDF/dump_netcdf.cpp | 1 + src/USER-NETCDF/dump_netcdf_mpiio.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/USER-NETCDF/dump_netcdf.cpp b/src/USER-NETCDF/dump_netcdf.cpp index 16cbc64525..988a9db6c3 100644 --- a/src/USER-NETCDF/dump_netcdf.cpp +++ b/src/USER-NETCDF/dump_netcdf.cpp @@ -599,6 +599,7 @@ void DumpNetCDF::openfile() count[1] = 5; NCERR( nc_put_vara_text(ncid, cell_angular_var, index, count, "gamma") ); + append_flag = 1; framei = 1; } } diff --git a/src/USER-NETCDF/dump_netcdf_mpiio.cpp b/src/USER-NETCDF/dump_netcdf_mpiio.cpp index d0090492e4..168e46a6b7 100644 --- a/src/USER-NETCDF/dump_netcdf_mpiio.cpp +++ b/src/USER-NETCDF/dump_netcdf_mpiio.cpp @@ -575,6 +575,7 @@ void DumpNetCDFMPIIO::openfile() NCERR( ncmpi_end_indep_data(ncid) ); + append_flag = 1; framei = 1; } } -- GitLab