Skip to content

Commit

Permalink
Update nc_err.cpp
Browse files Browse the repository at this point in the history
Fixing a very embarrassing bug. Netcdf errors now actually cause crashes.
  • Loading branch information
bastorer authored Aug 1, 2024
1 parent c67c82f commit ec03bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NETCDF_IO/nc_err.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ void NC_ERR(
const char* file_name
) {

#if DEBUG <= -2
#if DEBUG >= -2
// Print error statement
fprintf(stderr, "Error: [%s] at line %d in %s\n", nc_strerror(e), line_num, file_name);

Expand Down

0 comments on commit ec03bee

Please sign in to comment.