NOAA-GFDL / fre-cli

Python-based command line interface for FRE (FMS Runtime Environment) to compile and run FMS-based models and post-process their output.
GNU Lesser General Public License v3.0
3 stars 11 forks source link

Support Mixed Mode compile #182

Closed uramirez8707 closed 2 weeks ago

uramirez8707 commented 1 month ago

Is your feature request related to a problem? Please describe. AM5 would like to use a mixed mode compile where FV3 is compiled in r4 and the rest of the model is compiled with r8.

Currently, to do this in the bronx workflow the following needs to be added to the fv3 component in the xml after some updates to mkmf: https://github.com/NOAA-GFDL/mkmf/pull/68

<makeOverrides>USE_R4=$(USE_MIXED_MODE)</makeOverrides>

where $(USE_MIXED_MODE) is

  <property name="USE_MIXED_MODE" value=""/> <!-- set to TRUE, is using mixed mode" -->

Describe the solution you'd like The canopy should support mixed mode compiles, either similarly to bronx or a more #efficient way

Describe alternatives you've considered N/A

Additional context N/A

uramirez8707 commented 2 weeks ago

This can be closed as current fre make does support a mixed mode compilation. This is an example: https://github.com/uramirez8707/fre-examples/commit/c6d26454e86011448ba6c17addce389e8909a576

You just need to point to a modified mkmf template: /autofs/ncrc-svm1_home1/Uriel.Ramirez/mkmf/templates/ncrc5-intel-classic.mk (These mkmf updates are merged into the main branch, but are not deployed on gaea yet)

The use the key below on the component that you want to compile as r4:

          makeOverrides: 'USE_R4=TRUE'

Feel fre (lol) if you have a better method of supporting this