Definition at line 39 of file MOM_EOS_TEOS10.F90.
 
 | 
| subroutine  | calculate_density_scalar_teos10 (T, S, pressure, rho) | 
|   | This subroutine computes the in situ density of sea water (rho in units of kg/m^3) from salinity (S in psu), potential temperature (T in deg C), and pressure in Pa. It uses the expression from TEOS10 website.  More...
  | 
|   | 
| subroutine  | calculate_density_array_teos10 (T, S, pressure, rho, start, npts) | 
|   | 
◆ calculate_density_array_teos10()
  
  
      
        
          | subroutine mom_eos_teos10::calculate_density_teos10::calculate_density_array_teos10  | 
          ( | 
          real, dimension(:), intent(in)  | 
          T,  | 
         
        
           | 
           | 
          real, dimension(:), intent(in)  | 
          S,  | 
         
        
           | 
           | 
          real, dimension(:), intent(in)  | 
          pressure,  | 
         
        
           | 
           | 
          real, dimension(:), intent(out)  | 
          rho,  | 
         
        
           | 
           | 
          integer, intent(in)  | 
          start,  | 
         
        
           | 
           | 
          integer, intent(in)  | 
          npts  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
private   | 
  
 
Definition at line 83 of file MOM_EOS_TEOS10.F90.
   83   real,    
intent(in),  
dimension(:) :: t, s, pressure
    84   real,    
intent(out), 
dimension(:) :: rho
    85   integer, 
intent(in)                :: start, npts
   102   do j=start,start+npts-1
   106     zp = pressure(j)* pa2db         
   108     if(s(j).lt.-1.0e-10) cycle 
   109     rho(j) = gsw_rho(zs,zt,zp)
  
 
 
◆ calculate_density_scalar_teos10()
  
  
      
        
          | subroutine mom_eos_teos10::calculate_density_teos10::calculate_density_scalar_teos10  | 
          ( | 
          real, intent(in)  | 
          T,  | 
         
        
           | 
           | 
          real, intent(in)  | 
          S,  | 
         
        
           | 
           | 
          real, intent(in)  | 
          pressure,  | 
         
        
           | 
           | 
          real, intent(out)  | 
          rho  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
private   | 
  
 
This subroutine computes the in situ density of sea water (rho in units of kg/m^3) from salinity (S in psu), potential temperature (T in deg C), and pressure in Pa. It uses the expression from TEOS10 website. 
- Parameters
 - 
  
    | [in] | t | Conservative temperature in C. | 
    | [in] | s | Absolute salinity in g/kg. | 
    | [in] | pressure | Pressure in Pa. | 
    | [out] | rho | In situ density in kg m-3.  | 
  
   
Definition at line 52 of file MOM_EOS_TEOS10.F90.
   54 real,    
intent(in)  :: pressure
    55 real,    
intent(out) :: rho
    70   real, 
dimension(1) :: t0, s0, pressure0
    71   real, 
dimension(1) :: rho0
    75   pressure0(1) = pressure
    77   call calculate_density_array_teos10(t0, s0, pressure0, rho0, 1, 1)
  
 
 
The documentation for this interface was generated from the following file:
- /home/adcroft/GitHub/workspace/Gaea-stats-MOM6-examples/MOM6-examples/src/MOM6/src/equation_of_state/MOM_EOS_TEOS10.F90