From 6f671bf275e7515c28ebd6e3cf8e24b860bdc9ce Mon Sep 17 00:00:00 2001 From: Cyprien Date: Mon, 9 Oct 2023 20:17:32 +1300 Subject: [PATCH] change write2n to clobber --- src/Write_netcdf.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Write_netcdf.cu b/src/Write_netcdf.cu index 37bbaf2f..1a1a55e2 100644 --- a/src/Write_netcdf.cu +++ b/src/Write_netcdf.cu @@ -972,7 +972,7 @@ extern "C" void create2dnc(char* filename, int nx, int ny, double* xx, double* y nyy = ny; //create the netcdf dataset - status = nc_create(filename, NC_NOCLOBBER, &ncid); + status = nc_create(filename, NC_CLOBBER, &ncid); //Define dimensions: Name and length @@ -1008,7 +1008,7 @@ extern "C" void create2dnc(char* filename, int nx, int ny, double* xx, double* y status = nc_put_vara_double(ncid, tvar_id, start, count, var); status = nc_close(ncid); - //if (status != NC_NOERR) handle_ncerror(status); + if (status != NC_NOERR) handle_ncerror(status); }