MOM6
mom_intrinsic_functions Module Reference

Detailed Description

A module with intrinsic functions that are used by MOM but are not supported by some compilers.

Functions/Subroutines

real function, public invcosh (x)
 Evaluate the inverse cosh, either using a math library or an equivalent expression. More...
 

Function/Subroutine Documentation

◆ invcosh()

real function, public mom_intrinsic_functions::invcosh ( real, intent(in)  x)

Evaluate the inverse cosh, either using a math library or an equivalent expression.

Parameters
[in]xThe argument of the inverse of cosh. NaNs will occur if x<1, but there is no error checking

Definition at line 16 of file MOM_intrinsic_functions.F90.

16  real, intent(in) :: x !< The argument of the inverse of cosh. NaNs will
17  !! occur if x<1, but there is no error checking
18  real :: invcosh
19 
20 #ifdef __INTEL_COMPILER
21  invcosh = acosh(x)
22 #else
23  invcosh = log(x+sqrt(x*x-1))
24 #endif
25 

Referenced by mom_bkgnd_mixing::calculate_bkgnd_mixing(), and mom_bkgnd_mixing::sfc_bkgnd_mixing().

Here is the caller graph for this function: