NOAA-GFDL/MOM6

read_netCDF_data leads to cryptic model failure when rescale value argument is not 1

Closed this issue · 3 comments

Calls to read_netCDF_data() are failing for some fields when the value of the rescale optional argument is not 1. The error messages that are returned are a cryptic warning about invalid memory in the call to handle%close() at about line 2109 of MOM_io.F90, but I suspect that this the result of a segmentation fault earlier in read_netCDF_data_2d().

Can you show the fields or lines where this is happening?

Is it in tidal mixing?

call read_netCDF_data(filename, tideamp_var, CS%tideamp, G%domain, &
rescale=US%m_to_Z*US%T_to_s)

call read_netCDF_data(filename, rough_var, CS%h2, G%domain, &
rescale=US%m_to_Z**2)

Yes, these are the variables, but I have a pending fix for this bug.