esmf-org / esmf

The Earth System Modeling Framework (ESMF) is a suite of software tools for developing high-performance, multi-component Earth science modeling applications.
https://earthsystemmodeling.org/
Other
152 stars 74 forks source link

A new TYPEKIND parameter? #156

Open tclune opened 1 year ago

tclune commented 1 year ago

For MAPL, I would like to have the ability to specify a TYPEKIND for an import that "matches" the TYPEKIND of the export that it is connected. Something like ESMF_TYPEKIND_MATCH or ESMF_TYPEKIND_MIRROR etc.

As usual, since the dkind component is public, I can implement this entirely within MAPL, but am offering it as a change to ESMF in case there is value in this for NUOPC.

The scope of this may grow, as there are other import attributes that should also mirror, but I think a new parameter is only needed for those that otherwise have a sensible default. (I can just use an unallocated allocatable as a "match" value in the other cases.) For better or worse, MAPL has a default for import specs of ESMF_TYPEKIND_R4.

theurich commented 1 year ago

We talked about this on the regular NASA call. Action item: