MOM6
regrid_consts::coordinateunits Interface Reference

Detailed Description

Definition at line 50 of file regrid_consts.F90.

Public functions

character(len=16) function coordinateunitsi (coordMode)
 Returns a string with the coordinate units associated with the enumerated integer,. More...
 
character(len=16) function coordinateunitss (string)
 Returns a string with the coordinate units associated with the string defining the coordinate mode. More...
 

Functions and subroutines

◆ coordinateunitsi()

character(len=16) function regrid_consts::coordinateunits::coordinateunitsi ( integer, intent(in)  coordMode)

Returns a string with the coordinate units associated with the enumerated integer,.

Returns
Units of coordinate
Parameters
[in]coordmodeCoordinate mode

Definition at line 86 of file regrid_consts.F90.

86  character(len=16) :: coordinateunitsi !< Units of coordinate
87  integer, intent(in) :: coordmode !< Coordinate mode
88  select case ( coordmode )
89  case (regridding_layer); coordinateunitsi = "kg m^-3"
90  case (regridding_zstar); coordinateunitsi = "m"
91  case (regridding_sigma_shelf_zstar); coordinateunitsi = "m"
92  case (regridding_rho); coordinateunitsi = "kg m^-3"
93  case (regridding_sigma); coordinateunitsi = "Non-dimensional"
94  case (regridding_hycom1); coordinateunitsi = "m"
95  case (regridding_slight); coordinateunitsi = "m"
96  case (regridding_adaptive); coordinateunitsi = "m"
97  case default ; call mom_error(fatal, "coordinateUnts: "//&
98  "Unrecognized coordinate mode.")
99  end select

◆ coordinateunitss()

character(len=16) function regrid_consts::coordinateunits::coordinateunitss ( character(len=*), intent(in)  string)

Returns a string with the coordinate units associated with the string defining the coordinate mode.

Returns
Units of coordinate
Parameters
[in]stringCoordinate mode

Definition at line 105 of file regrid_consts.F90.

105  character(len=16) :: coordinateunitss !< Units of coordinate
106  character(len=*), intent(in) :: string !< Coordinate mode
107  integer :: coordmode
108  coordmode = coordinatemode(string)
109  coordinateunitss = coordinateunitsi(coordmode)

The documentation for this interface was generated from the following file: