public pure function parse_cavity_freshwater(name) result(code)
Translate a &ocean_cavity_melt_nml freshwater string into a
CAVITY_FW_* code. The accepted set MIRRORS the nml_enum
registration in register_ocean_cavity_melt — the two lists
move together.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
Variables
Type
Visibility
Attributes
Name
Initial
character(len=:),
private,
allocatable
::
key
Source Code
pure function parse_cavity_freshwater(name)result(code)!! Translate a `&ocean_cavity_melt_nml freshwater` string into a!! `CAVITY_FW_*` code. The accepted set MIRRORS the `nml_enum`!! registration in `register_ocean_cavity_melt` — the two lists!! move together.character(len=*),intent(in)::namecharacter(len=:),allocatable::keyinteger::codekey=trim(adjustl(name))select case(key)case("virtual","VIRTUAL","virtual_salt")code=CAVITY_FW_VIRTUALcase("mass","MASS","real","real_mass")code=CAVITY_FW_MASScase defaultcode=CAVITY_FW_INVALIDend select end function parse_cavity_freshwater