MOM6
mom_coms::operator(+) Interface Reference

Detailed Description

Add two extended-fixed-point numbers.

Definition at line 69 of file MOM_coms.F90.

Private functions

type(efp_type) function efp_plus (EFP1, EFP2)
 Add two extended-fixed-point numbers. More...
 

Functions and subroutines

◆ efp_plus()

type(efp_type) function mom_coms::operator(+)::efp_plus ( type(efp_type), intent(in)  EFP1,
type(efp_type), intent(in)  EFP2 
)
private

Add two extended-fixed-point numbers.

Returns
The result in extended fixed point format
Parameters
[in]efp1The first extended fixed point number
[in]efp2The second extended fixed point number

Definition at line 614 of file MOM_coms.F90.

614  type(EFP_type) :: EFP_plus !< The result in extended fixed point format
615  type(EFP_type), intent(in) :: EFP1 !< The first extended fixed point number
616  type(EFP_type), intent(in) :: EFP2 !< The second extended fixed point number
617 
618  efp_plus = efp1
619 
620  call increment_ints(efp_plus%v(:), efp2%v(:))

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