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 15231 for NEMO/releases/r4.0/r4.0-HEAD/src/OCE/FLO/flodom.F90 – NEMO

Ignore:
Timestamp:
2021-09-08T09:58:57+02:00 (3 years ago)
Author:
clem
Message:

4.0-HEAD: small bug fixes following tickets #2644 #2679 #2688

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/releases/r4.0/r4.0-HEAD/src/OCE/FLO/flodom.F90

    r11818 r15231  
    366366      REAL(wp) ::   zabt, zbct, zcdt, zdat, zabpt, zbcpt, zcdpt, zdapt 
    367367      !!--------------------------------------------------------------------- 
    368       !! Statement function 
    369       REAL(wp) ::   fsline 
    370       REAL(wp) ::   psax, psay, psbx, psby, psx, psy 
    371       fsline( psax, psay, psbx, psby, psx, psy ) = psy  * ( psbx - psax )   & 
    372          &                                       - psx  * ( psby - psay )   & 
    373          &                                       + psax *   psby - psay * psbx 
    374       !!--------------------------------------------------------------------- 
    375368       
    376369      ! 4 semi plane defined by the 4 points and including the T point 
     
    407400   END SUBROUTINE flo_findmesh 
    408401 
     402   FUNCTION fsline( psax, psay, psbx, psby, psx, psy ) 
     403      !! --------------------------------------------------------------------- 
     404      !!                 ***  Function fsline  *** 
     405      !!           
     406      !! ** Purpose : 
     407      !! ** Method  :  
     408      !!---------------------------------------------------------------------- 
     409      REAL(wp) ::   fsline 
     410      REAL(wp), INTENT(in) ::   psax, psay, psbx, psby, psx, psy 
     411      !!--------------------------------------------------------------------- 
     412      fsline = psy  * ( psbx - psax )   & 
     413         &   - psx  * ( psby - psay )   & 
     414         &   + psax *   psby - psay * psbx 
     415      ! 
     416   END FUNCTION fsline 
    409417 
    410418   FUNCTION flo_dstnce( pla1, phi1, pla2, phi2 ) 
Note: See TracChangeset for help on using the changeset viewer.