Changeset 13204 for utils/tools/DOMAINcfg/src/domngb.F90
- Timestamp:
- 2020-07-02T10:38:35+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/tools/DOMAINcfg/src/domngb.F90
r12414 r13204 11 11 !!---------------------------------------------------------------------- 12 12 USE dom_oce ! ocean space and time domain 13 USE phycst14 13 ! 15 14 USE in_out_manager ! I/O manager 16 15 USE lib_mpp ! for mppsum 16 USE phycst 17 17 18 18 IMPLICIT NONE … … 46 46 INTEGER :: ik ! working level 47 47 INTEGER , DIMENSION(2) :: iloc 48 REAL(wp) :: zlon, zmini 48 49 REAL(wp), DIMENSION(jpi,jpj) :: zglam, zgphi, zmask, zdist 49 50 !!-------------------------------------------------------------------- … … 59 60 END SELECT 60 61 61 zdist = dist(plon, plat, zglam, zgphi) 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 62 67 63 68 IF( lk_mpp ) THEN
Note: See TracChangeset
for help on using the changeset viewer.