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 15235 for NEMO/trunk/src/OCE/FLO – NEMO

Ignore:
Timestamp:
2021-09-08T16:07:36+02:00 (3 years ago)
Author:
clem
Message:

trunk: solve ticket #2644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/FLO/flodom.F90

    r15062 r15235  
    371371      REAL(wp) ::   zabt, zbct, zcdt, zdat, zabpt, zbcpt, zcdpt, zdapt 
    372372      !!--------------------------------------------------------------------- 
    373       !! Statement function 
    374       REAL(wp) ::   fsline 
    375       REAL(wp) ::   psax, psay, psbx, psby, psx, psy 
    376       fsline( psax, psay, psbx, psby, psx, psy ) = psy  * ( psbx - psax )   & 
    377          &                                       - psx  * ( psby - psay )   & 
    378          &                                       + psax *   psby - psay * psbx 
    379       !!--------------------------------------------------------------------- 
    380373       
    381374      ! 4 semi plane defined by the 4 points and including the T point 
     
    412405   END SUBROUTINE flo_findmesh 
    413406 
    414  
     407   FUNCTION fsline( psax, psay, psbx, psby, psx, psy ) 
     408      !! --------------------------------------------------------------------- 
     409      !!                 ***  Function fsline  *** 
     410      !!           
     411      !! ** Purpose : 
     412      !! ** Method  :  
     413      !!---------------------------------------------------------------------- 
     414      REAL(wp) ::   fsline 
     415      REAL(wp), INTENT(in) ::   psax, psay, psbx, psby, psx, psy 
     416      !!--------------------------------------------------------------------- 
     417      fsline = psy  * ( psbx - psax )   & 
     418         &   - psx  * ( psby - psay )   & 
     419         &   + psax *   psby - psay * psbx 
     420      ! 
     421   END FUNCTION fsline 
     422  
    415423   FUNCTION flo_dstnce( pla1, phi1, pla2, phi2 ) 
    416424      !! ------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.