Map &ocean_porous_nml eta_interp onto POROUS_ETA_*. An
unrecognised string returns -1 so the caller can fail loud.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
pure function parse_porous_eta_interp(name) result(interp) !! Map `&ocean_porous_nml eta_interp` onto `POROUS_ETA_*`. An !! unrecognised string returns -1 so the caller can fail loud. character(len=*), intent(in) :: name integer :: interp select case (trim(adjustl(name))) case ("max") interp = POROUS_ETA_MAX case ("min") interp = POROUS_ETA_MIN case ("arithmetic") interp = POROUS_ETA_ARITH case ("harmonic") interp = POROUS_ETA_HARM case default interp = -1 end select end function parse_porous_eta_interp