Skip to content

Commit

Permalink
change write2n to clobber
Browse files Browse the repository at this point in the history
  • Loading branch information
CyprienBosserelle committed Oct 9, 2023
1 parent 79b3141 commit 6f671bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Write_netcdf.cu
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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);

}

Expand Down

0 comments on commit 6f671bf

Please sign in to comment.