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 14931 for utils/tools/DOMAINcfg/src/domngb.F90 – NEMO

Ignore:
Timestamp:
2021-05-31T16:36:45+02:00 (3 years ago)
Author:
jchanut
Message:

#2638: restores Pierre's changes done in #2588 at r14199

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utils/tools/DOMAINcfg/src/domngb.F90

    r14623 r14931  
    4646      INTEGER :: ik         ! working level 
    4747      INTEGER , DIMENSION(2) ::   iloc 
    48       REAL(wp)               ::   zlon, zmini 
    4948      REAL(wp), DIMENSION(jpi,jpj) ::   zglam, zgphi, zmask, zdist 
    5049      !!-------------------------------------------------------------------- 
     
    6059      END SELECT 
    6160 
    62       zlon       = MOD( plon       + 720., 360. )                                     ! plon between    0 and 360 
    63       zglam(:,:) = MOD( zglam(:,:) + 720., 360. )                                     ! glam between    0 and 360 
    64       IF( zlon > 270. )   zlon = zlon - 360.                                          ! zlon between  -90 and 270 
    65       IF( zlon <  90. )   WHERE( zglam(:,:) > 180. ) zglam(:,:) = zglam(:,:) - 360.   ! glam between -180 and 180 
    66       zglam(:,:) = zglam(:,:) - zlon 
     61      zdist = dist(plon, plat, zglam, zgphi)  
    6762 
    6863      IF( lk_mpp ) THEN   
Note: See TracChangeset for help on using the changeset viewer.