Changeset 14799 for NEMO/branches/2021
- Timestamp:
- 2021-05-06T15:57:06+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2021/dev_r14318_RK3_stage1/tests/VORTEX/MY_SRC/usrdef_hgr.F90
r14223 r14799 80 80 IF( Agrif_Root() ) THEN 81 81 #endif 82 zlam0 = -REAL( Ni0glo, wp) * 0.5* 1.e-3 * rn_dx83 zphi0 = -REAL( Nj0glo, wp) * 0.5* 1.e-3 * rn_dy82 zlam0 = -REAL((Ni0glo-1)/2, wp) * 1.e-3 * rn_dx 83 zphi0 = -REAL((Nj0glo-1)/2, wp) * 1.e-3 * rn_dy 84 84 #if defined key_agrif 85 85 ELSE 86 86 ! ! let lower left longitude and latitude from parent 87 zlam0 = ( 0.5_wp - REAL( Ni0glo, wp) * 0.5 ) * 1.e-3 * Agrif_irhox() * rn_dx &87 zlam0 = ( 0.5_wp - REAL(Agrif_Parent(Ni0glo)-1, wp) * 0.5 ) * 1.e-3 * Agrif_irhox() * rn_dx & 88 88 & + ( Agrif_Ix() + nbghostcells - 1 ) * Agrif_irhox() * rn_dx * 1.e-3 - ( 0.5_wp + nbghostcells ) * rn_dx * 1.e-3 89 zphi0 = ( 0.5_wp - REAL( Nj0glo, wp) * 0.5 ) * 1.e-3 * Agrif_irhoy() * rn_dy &89 zphi0 = ( 0.5_wp - REAL(Agrif_Parent(Nj0glo)-1, wp) * 0.5 ) * 1.e-3 * Agrif_irhoy() * rn_dy & 90 90 & + ( Agrif_Iy() + nbghostcells - 1 ) * Agrif_irhoy() * rn_dy * 1.e-3 - ( 0.5_wp + nbghostcells ) * rn_dy * 1.e-3 91 91 ENDIF 92 92 #endif 93 93 94 DO_2D( nn_hls , nn_hls, nn_hls, nn_hls )95 zti = REAL( mig0(ji) , wp ) - 0.5_wp! start at i=0.5 in the global grid without halos96 ztj = REAL( mjg0(jj) , wp ) - 0.5_wp! start at j=0.5 in the global grid without halos94 DO_2D( nn_hls , nn_hls, nn_hls, nn_hls ) 95 zti = REAL( mig0(ji)-1, wp ) ! start at i=0.5 in the global grid without halos 96 ztj = REAL( mjg0(jj)-1, wp ) ! start at j=0.5 in the global grid without halos 97 97 98 98 plamt(ji,jj) = zlam0 + rn_dx * 1.e-3 * zti
Note: See TracChangeset
for help on using the changeset viewer.