Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

+Add and use optional conversion argument to register_field in MOM_io_file #780

Open
wants to merge 3 commits into
base: dev/gfdl
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/core/MOM.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2711,20 +2711,20 @@ subroutine initialize_MOM(Time, Time_init, param_file, dirs, CS, &
if (CS%tv%T_is_conT) then
vd_T = var_desc(name="contemp", units="Celsius", longname="Conservative Temperature", &
cmor_field_name="bigthetao", cmor_longname="Sea Water Conservative Temperature", &
conversion=US%Q_to_J_kg*CS%tv%C_p)
conversion=US%C_to_degC)
else
vd_T = var_desc(name="temp", units="degC", longname="Potential Temperature", &
cmor_field_name="thetao", cmor_longname="Sea Water Potential Temperature", &
conversion=US%Q_to_J_kg*CS%tv%C_p)
conversion=US%C_to_degC)
endif
if (CS%tv%S_is_absS) then
vd_S = var_desc(name="abssalt", units="g kg-1", longname="Absolute Salinity", &
cmor_field_name="absso", cmor_longname="Sea Water Absolute Salinity", &
conversion=0.001*US%S_to_ppt)
conversion=US%S_to_ppt)
else
vd_S = var_desc(name="salt", units="psu", longname="Salinity", &
cmor_field_name="so", cmor_longname="Sea Water Salinity", &
conversion=0.001*US%S_to_ppt)
conversion=US%S_to_ppt)
endif

if (advect_TS) then
Expand Down
Loading
Loading