New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 14654 – NEMO

Changeset 14654


Ignore:
Timestamp:
2021-03-29T16:38:08+02:00 (3 years ago)
Author:
sparonuz
Message:

Removed fsline: is a statement functions, which is deprecated since f95. Created a proper function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r14116_HPC-04_mcastril_Mixed_Precision_implementation_final/src/OCE/FLO/flodom.F90

    r14644 r14654  
    373373      !! 
    374374      REAL(dp) ::   zabt, zbct, zcdt, zdat, zabpt, zbcpt, zcdpt, zdapt 
    375       !!--------------------------------------------------------------------- 
    376       !! Statement function 
    377       REAL(dp) ::   fsline 
    378       REAL(dp) ::   psax, psay, psbx, psby, psx, psy 
    379       fsline( psax, psay, psbx, psby, psx, psy ) = psy  * ( psbx - psax )   & 
    380          &                                       - psx  * ( psby - psay )   & 
    381          &                                       + psax *   psby - psay * psbx 
    382       !!--------------------------------------------------------------------- 
    383375       
    384376      ! 4 semi plane defined by the 4 points and including the T point 
     
    413405      ENDIF 
    414406      ! 
     407      !!--------------------------------------------------------------------- 
     408      !! Statement function 
     409      CONTAINS 
     410      FUNCTION fsline(psax, psay, psbx, psby, psx, psy) 
     411          REAL(dp), INTENT(IN) :: psax, psay, psbx, psby, psx, psy 
     412          REAL(dp) :: fsline 
     413          fsline = psy  * ( psbx - psax )   & 
     414             &   - psx  * ( psby - psay )   & 
     415             &   + psax *   psby - psay * psbx 
     416      END FUNCTION fsline 
     417      !!--------------------------------------------------------------------- 
    415418   END SUBROUTINE flo_findmesh 
    416419 
Note: See TracChangeset for help on using the changeset viewer.