-
Notifications
You must be signed in to change notification settings - Fork 164
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
ATM needs to export coupling fields to mediator with correct sign or unit #669
ATM needs to export coupling fields to mediator with correct sign or unit #669
Comments
The value of The logic in the block_data interfaces has the |
@junwang-noaa I've been thinking more about the issue of not scaling the special values in an export field. Right now, One option is to remove
This would mean that if you want to scale the output, you must provide the value where the scaling is not applied. No one is calling the |
I think that might be a better approach. |
Description
Currently specialized code is required in CMEPS because the export fields obtained from the ATM do not have the correct sign or unit. For example, MOM6 requires the evaporative flux, not the latent heat flux, and so specialized code is required in CMEPS just to change the sign and unit. In addition, the momementum stresses and sensible heat flux also need a sign change within CMEPS. See NOAA-EMC/CMEPS#93
Solution
In
atmos_model.F90
, both sign and units can be changed using the optionalscale_factor
argument. For example,Alternatives
Maintain existing code
Testing:
I have a working branch which is B4B with current baselines with the exception of the mediator restart files (ie, the data is the same, but with an opposite sign).
However, this method does change the value of the "non-valid" value in the exported fields. Currently, these non-valid values are typically
1.385E+34
. An optional masking value could be used in the block_data interfaces to keep the values the same. I need to know where this value of1.385E+34
is set however.The text was updated successfully, but these errors were encountered: