Changeset 14994 for NEMO/branches/2021/ticket2669_isf_fluxes/tests
- Timestamp:
- 2021-06-15T16:39:31+02:00 (3 years ago)
- Location:
- NEMO/branches/2021/ticket2669_isf_fluxes/tests
- Files:
-
- 2 deleted
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2021/ticket2669_isf_fluxes/tests/CANAL/EXPREF/file_def_nemo-oce.xml
r14224 r14994 26 26 <field field_ref="utau" /> 27 27 <field field_ref="uoce" /> 28 <field_group group_ref="trendU" />29 28 </file> 30 29 … … 32 31 <field field_ref="vtau" /> 33 32 <field field_ref="voce" /> 34 <field_group group_ref="trendV" />35 33 </file> 36 34 -
NEMO/branches/2021/ticket2669_isf_fluxes/tests/DOME/EXPREF/AGRIF_FixedGrids.in
r14216 r14994 1 1 1 2 2 78 358 88 1622 2 22 281 361 91 169 2 2 2 3 3 0 -
NEMO/branches/2021/ticket2669_isf_fluxes/tests/DOME/MY_SRC/usrdef_hgr.F90
r14254 r14994 23 23 IMPLICIT NONE 24 24 PRIVATE 25 26 REAL(wp) :: roffsetx, roffsety ! Offset in km to first f-point 25 27 26 28 PUBLIC usr_def_hgr ! called by domhgr.F90 … … 64 66 ! 65 67 INTEGER :: ji, jj ! dummy loop indices 66 REAL(wp) :: zphi0, zlam067 68 REAL(wp) :: zti, ztj ! local scalars 68 69 !!------------------------------------------------------------------------------- … … 77 78 ! Position coordinates (in kilometers) 78 79 ! ========== 79 zlam0 = -REAL( 0.5 + 1700._wp * 1.e3 / rn_dx) 80 zphi0 = -REAL( 0.5 + 800._wp * 1.e3 / rn_dy) 80 ! Offsets in km of the first south west f-point: 81 roffsetx = -1700._wp 82 roffsety = -800._wp 81 83 #if defined key_agrif 82 IF( .NOT.Agrif_Root() ) THEN 83 zlam0 = - REAL( 0.5 + 1700._wp * 1.e3 / rn_dx + nbghostcells) & 84 & + REAL((nbghostcells + Agrif_Ix() - 1)*Agrif_irhox()) 85 zphi0 = - REAL( 0.5 + 800._wp * 1.e3 / rn_dy + nbghostcells) & 86 & + REAL((nbghostcells + Agrif_Iy() - 1)*Agrif_irhoy()) 87 ENDIF 84 IF( .NOT.Agrif_Root() ) THEN 85 ! deduce offset from parent: 86 roffsetx = Agrif_Parent(roffsetx) & 87 & + (-(nbghostcells_x - 1) + (Agrif_Parent(nbghostcells_x ) & 88 & + Agrif_Ix()-2)*Agrif_Rhox()) * 1.e-3 * rn_dx 89 roffsety = Agrif_Parent(roffsety) & 90 & + (-(nbghostcells_y_s - 1) + (Agrif_Parent(nbghostcells_y_s) & 91 & + Agrif_Iy()-2)*Agrif_Rhoy()) * 1.e-3 * rn_dy 92 ENDIF 88 93 #endif 89 94 90 DO_2D( 1, 1, 1, 1)91 zti = REAL( mig0 _oldcmp(ji) - 1, wp ) ! start at i=0 in the global grid without halos92 ztj = REAL( mjg0 _oldcmp(jj) - 1, wp ) ! start at j=0 in the global grid without halos95 DO_2D( nn_hls, nn_hls, nn_hls, nn_hls ) 96 zti = REAL( mig0(ji) - 1, wp ) ! start at i=0 in the global grid without halos 97 ztj = REAL( mjg0(jj) - 1, wp ) ! start at j=0 in the global grid without halos 93 98 94 plamt(ji,jj) = r n_dx * 1.e-3 * ( zlam0 + zti)95 plamu(ji,jj) = r n_dx * 1.e-3 * ( zlam0 + zti + 0.5_wp )99 plamt(ji,jj) = roffsetx + rn_dx * 1.e-3 * ( zti - 0.5_wp ) 100 plamu(ji,jj) = roffsetx + rn_dx * 1.e-3 * zti 96 101 plamv(ji,jj) = plamt(ji,jj) 97 102 plamf(ji,jj) = plamu(ji,jj) 98 103 99 pphit(ji,jj) = r n_dy * 1.e-3 * ( zphi0 + ztj)100 pphiv(ji,jj) = r n_dy * 1.e-3 * ( zphi0 + ztj + 0.5_wp )104 pphit(ji,jj) = roffsety + rn_dy * 1.e-3 * ( ztj - 0.5_wp ) 105 pphiv(ji,jj) = roffsety + rn_dy * 1.e-3 * ztj 101 106 pphiu(ji,jj) = pphit(ji,jj) 102 107 pphif(ji,jj) = pphiv(ji,jj) -
NEMO/branches/2021/ticket2669_isf_fluxes/tests/DOME/MY_SRC/usrdef_nam.F90
r14433 r14994 60 60 ! 61 61 INTEGER :: ios ! Local integer 62 INTEGER :: ighost_w, ighost_e, ighost_s, ighost_n 62 63 REAL(wp):: zlx, zly, zh ! Local scalars 63 64 !! … … 74 75 rn_dx = Agrif_Parent(rn_dx)/Agrif_Rhox() 75 76 rn_dy = Agrif_Parent(rn_dy)/Agrif_Rhoy() 76 rn_dz = Agrif_Parent(rn_dz)77 77 rn_f0 = Agrif_Parent(rn_f0) 78 78 ENDIF … … 84 84 kk_cfg = nINT( rn_dx ) 85 85 ! 86 #if defined key_agrif 86 87 IF( Agrif_Root() ) THEN ! Global Domain size: DOME global domain is 2000 km x 850 Km x 3600 m 88 #endif 87 89 kpi = NINT( 2000.e3 / rn_dx ) + 2 88 90 kpj = NINT( 850.e3 / rn_dy ) + 2 + 1 91 #if defined key_agrif 89 92 ELSE ! Global Domain size: add nbghostcells + 1 "land" point on each side 90 kpi = nbcellsx + 2 * ( nbghostcells + 1 ) 91 kpj = nbcellsy + 2 * ( nbghostcells + 1 ) 92 !!$ kpi = nbcellsx + nbghostcells_x + nbghostcells_x + 2 93 !!$ kpj = nbcellsy + nbghostcells_y_s + nbghostcells_y_n + 2 93 ! At this stage, child ghosts have not been set 94 ighost_w = nbghostcells 95 ighost_e = nbghostcells 96 ighost_s = nbghostcells 97 ighost_n = nbghostcells 98 99 IF ( Agrif_Ix() == 1 ) ighost_w = 1 100 IF ( Agrif_Ix() + nbcellsx/AGRIF_Irhox() == Agrif_Parent(Ni0glo)-1 ) ighost_e = 1 101 IF ( Agrif_Iy() == 1 ) ighost_s = 1 102 IF ( Agrif_Iy() + nbcellsy/AGRIF_Irhoy() == Agrif_Parent(Nj0glo)-1 ) ighost_n = 1 103 kpi = nbcellsx + ighost_w + ighost_e 104 kpj = nbcellsy + ighost_s + ighost_n 105 !! JC: number of ghosts are unknown at this stage ! 106 !!$ kpi = nbcellsx + nbghostcells_x + nbghostcells_x 107 !!$ kpj = nbcellsy + nbghostcells_y_s + nbghostcells_y_n 94 108 ENDIF 109 #endif 95 110 kpk = NINT( 3600._wp / rn_dz ) + 1 96 111 ! -
NEMO/branches/2021/ticket2669_isf_fluxes/tests/DOME/MY_SRC/usrdef_zgr.F90
r14433 r14994 193 193 pe3w (ji,jj,ik ) = pdept(ji,jj,ik ) - pdept(ji,jj,ik-1) ! st caution ik > 1 194 194 END_2D 195 ! ! bottom scale factors and depth at U-, V-, UW and VW-points 196 ! ! usually Computed as the minimum of neighbooring scale factors 197 pe3u (:,:,:) = pe3t(:,:,:) ! HERE DOME configuration : 198 pe3v (:,:,:) = pe3t(:,:,:) ! e3 increases with i-index and identical with j-index 199 pe3f (:,:,:) = pe3t(:,:,:) ! so e3 minimum of (i,i+1) points is (i) point 200 pe3uw(:,:,:) = pe3w(:,:,:) ! in j-direction e3v=e3t and e3f=e3v 201 pe3vw(:,:,:) = pe3w(:,:,:) ! ==>> no need of lbc_lnk calls 195 ! 196 DO_3D( 0, 0, 0, 0, 1, jpk ) 197 pe3u (ji,jj,jk) = MIN( pe3t(ji,jj,jk), pe3t(ji+1,jj,jk) ) 198 pe3v (ji,jj,jk) = MIN( pe3t(ji,jj,jk), pe3t(ji,jj+1,jk) ) 199 pe3uw(ji,jj,jk) = MIN( pe3w(ji,jj,jk), pe3w(ji+1,jj,jk) ) 200 pe3vw(ji,jj,jk) = MIN( pe3w(ji,jj,jk), pe3w(ji,jj+1,jk) ) 201 END_3D 202 ! 203 CALL lbc_lnk('usrdef_zgr', pe3u , 'U', 1._wp, pe3uw, 'U', 1._wp ) 204 CALL lbc_lnk('usrdef_zgr', pe3v , 'V', 1._wp, pe3vw, 'V', 1._wp ) 205 ! 206 DO jk = 1, jpk 207 WHERE( pe3u (:,:,jk) == 0._wp ) pe3u (:,:,jk) = pe3t_1d(jk) 208 WHERE( pe3v (:,:,jk) == 0._wp ) pe3v (:,:,jk) = pe3t_1d(jk) 209 WHERE( pe3uw(:,:,jk) == 0._wp ) pe3uw(:,:,jk) = pe3w_1d(jk) 210 WHERE( pe3vw(:,:,jk) == 0._wp ) pe3vw(:,:,jk) = pe3w_1d(jk) 211 END DO 212 213 DO_3D( 0, 0, 0, 0, 1, jpk ) 214 pe3f(ji,jj,jk) = MIN( pe3v(ji,jj,jk), pe3v(ji+1,jj,jk) ) 215 END_3D 216 CALL lbc_lnk('usrdef_zgr', pe3f, 'F', 1._wp ) 202 217 ! 203 218 ENDIF -
NEMO/branches/2021/ticket2669_isf_fluxes/tests/ICE_AGRIF/EXPREF/AGRIF_FixedGrids.in
r13286 r14994 1 1 1 2 3 3 62 33 623 3 32 34 63 34 63 3 3 3 3 3 0 -
NEMO/branches/2021/ticket2669_isf_fluxes/tests/ICE_AGRIF/EXPREF/make_INITICE.py
r10516 r14994 20 20 # Reading coordinates file 21 21 nccoord=netcdf(fcoord,'r') 22 nav_lon=nccoord.variables[' nav_lon']23 nav_lat=nccoord.variables[' nav_lat']22 nav_lon=nccoord.variables['x'] 23 nav_lat=nccoord.variables['y'] 24 24 time_counter=1 25 25 LON1= nav_lon.shape[1] -
NEMO/branches/2021/ticket2669_isf_fluxes/tests/ICE_AGRIF/MY_SRC/usrdef_hgr.F90
r14223 r14994 23 23 IMPLICIT NONE 24 24 PRIVATE 25 26 REAL(wp) :: roffsetx, roffsety ! Offset in km to first f-point 25 27 26 28 PUBLIC usr_def_hgr ! called by domhgr.F90 … … 50 52 !! without Coriolis force (f=0) 51 53 !! 52 !! ** Action : - define longitude & latitude of t-, u-, v- and f-points (in degrees)54 !! ** Action : - define longitude & latitude of t-, u-, v- and f-points (in kms) 53 55 !! - define coriolis parameter at f-point if the domain in not on the sphere (on beta-plane) 54 56 !! - define i- & j-scale factors at t-, u-, v- and f-points (in meters) … … 65 67 ! 66 68 INTEGER :: ji, jj ! dummy loop indices 67 REAL(wp) :: z phi0, zlam0, zbeta, zf069 REAL(wp) :: zbeta, zf0 68 70 REAL(wp) :: zti, ztj ! local scalars 69 71 !!------------------------------------------------------------------------------- … … 74 76 IF(lwp) WRITE(numout,*) ' f-plane with irregular grid-spacing (+- 10%)' 75 77 IF(lwp) WRITE(numout,*) ' the max is given by rn_dx and rn_dy' 78 ! 79 ! 80 ! Position coordinates (in kilometers) 81 ! ========== 82 ! Offset is given at first f-point, i.e. at (i,j) = (nn_hls+1, nn_hls+1) 83 ! Here we assume the grid is centred around a T-point at the middle of 84 ! of the domain (hence domain size is odd) 85 roffsetx = (-REAL(Ni0glo-1, wp) + 1._wp) * 0.5 * 1.e-3 * rn_dx 86 roffsety = (-REAL(Nj0glo-1, wp) + 1._wp) * 0.5 * 1.e-3 * rn_dy 87 #if defined key_agrif 88 IF( .NOT.Agrif_Root() ) THEN 89 ! deduce offset from parent: 90 roffsetx = Agrif_Parent(roffsetx) & 91 & + (-(nbghostcells_x - 1) + (Agrif_Parent(nbghostcells_x ) & 92 & + Agrif_Ix()-2)*Agrif_Rhox()) * 1.e-3 * rn_dx 93 roffsety = Agrif_Parent(roffsety) & 94 & + (-(nbghostcells_y_s - 1) + (Agrif_Parent(nbghostcells_y_s) & 95 & + Agrif_Iy()-2)*Agrif_Rhoy()) * 1.e-3 * rn_dy 96 ENDIF 97 #endif 98 DO_2D( nn_hls, nn_hls, nn_hls, nn_hls ) 99 zti = REAL( mig0(ji)-1, wp ) ! start at i=0 in the global grid without halos 100 ztj = REAL( mjg0(jj)-1, wp ) ! start at j=0 in the global grid without halos 76 101 77 ! ========== 78 #if defined key_agrif 79 IF( Agrif_Root() ) THEN 80 #endif 81 zlam0 = -REAL(Ni0glo, wp) * 0.5 * 1.e-3 * rn_dx 82 zphi0 = -REAL(Nj0glo, wp) * 0.5 * 1.e-3 * rn_dy 83 #if defined key_agrif 84 ELSE 85 ! ! let lower left longitude and latitude from parent 86 !clem zlam0 = Agrif_Parent(zlam0) + (Agrif_ix())*Agrif_Parent(rn_dx) * 1.e-5 87 !clem zphi0 = Agrif_Parent(zphi0) + (Agrif_iy())*Agrif_Parent(rn_dy) * 1.e-5 88 zlam0 = ( 0.5_wp - REAL(Ni0glo, wp) * 0.5 ) * 1.e-3 * Agrif_irhox() * rn_dx & 89 & + ( Agrif_Ix() + nbghostcells - 1 ) * Agrif_irhox() * rn_dx * 1.e-3 - ( 0.5_wp + nbghostcells ) * rn_dx * 1.e-3 90 zphi0 = ( 0.5_wp - REAL(Nj0glo, wp) * 0.5 ) * 1.e-3 * Agrif_irhoy() * rn_dy & 91 & + ( Agrif_Iy() + nbghostcells - 1 ) * Agrif_irhoy() * rn_dy * 1.e-3 - ( 0.5_wp + nbghostcells ) * rn_dy * 1.e-3 92 ENDIF 93 #endif 102 plamt(ji,jj) = roffsetx + rn_dx * 1.e-3 * ( zti - 0.5_wp ) 103 plamu(ji,jj) = roffsetx + rn_dx * 1.e-3 * zti 104 plamv(ji,jj) = plamt(ji,jj) 105 plamf(ji,jj) = plamu(ji,jj) 94 106 95 DO_2D( nn_hls, nn_hls, nn_hls, nn_hls ) 96 zti = REAL( mig0(ji), wp ) - 0.5_wp ! start at i=0.5 in the global grid without halos 97 ztj = REAL( mjg0(jj), wp ) - 0.5_wp ! start at j=0.5 in the global grid without halos 98 99 plamt(ji,jj) = zlam0 + rn_dx * 1.e-3 * zti 100 plamu(ji,jj) = zlam0 + rn_dx * 1.e-3 * ( zti + 0.5_wp ) 101 plamv(ji,jj) = plamt(ji,jj) 102 plamf(ji,jj) = plamu(ji,jj) 103 104 pphit(ji,jj) = zphi0 + rn_dy * 1.e-3 * ztj 105 pphiv(ji,jj) = zphi0 + rn_dy * 1.e-3 * ( ztj + 0.5_wp ) 106 pphiu(ji,jj) = pphit(ji,jj) 107 pphif(ji,jj) = pphiv(ji,jj) 107 pphit(ji,jj) = roffsety + rn_dy * 1.e-3 * ( ztj - 0.5_wp ) 108 pphiv(ji,jj) = roffsety + rn_dy * 1.e-3 * ztj 109 pphiu(ji,jj) = pphit(ji,jj) 110 pphif(ji,jj) = pphiv(ji,jj) 108 111 END_2D 109 110 111 112 ! 113 ! Horizontal scale factors (in meters) 114 ! ====== 112 115 !! ==> EITHER 1) variable scale factors 113 116 !! clem: This can be used with a 1proc simulation but I think it breaks repro when >1procs are used -
NEMO/branches/2021/ticket2669_isf_fluxes/tests/ICE_AGRIF/MY_SRC/usrdef_nam.F90
r14433 r14994 88 88 kpj = NINT( 300.e3 / rn_dy ) - 3 89 89 ELSE ! Global Domain size: add nbghostcells + 1 "land" point on each side 90 kpi = nbcellsx + 2 * ( nbghostcells + 1 ) 91 kpj = nbcellsy + 2 * ( nbghostcells + 1 ) 90 kpi = nbcellsx + 2 * nbghostcells 91 kpj = nbcellsy + 2 * nbghostcells 92 !! JC: number of ghosts unknown at this tage 92 93 !!$ kpi = nbcellsx + nbghostcells_x + nbghostcells_x + 2 93 94 !!$ kpj = nbcellsy + nbghostcells_y_s + nbghostcells_y_n + 2 -
NEMO/branches/2021/ticket2669_isf_fluxes/tests/VORTEX/EXPREF/AGRIF_FixedGrids.in
r9787 r14994 1 1 1 2 19 38 19 383 3 32 22 41 22 41 3 3 3 3 3 0 -
NEMO/branches/2021/ticket2669_isf_fluxes/tests/VORTEX/MY_SRC/usrdef_hgr.F90
r14223 r14994 23 23 IMPLICIT NONE 24 24 PRIVATE 25 26 REAL(wp) :: roffsetx, roffsety ! Offset in km to first f-point 25 27 26 28 PUBLIC usr_def_hgr ! called by domhgr.F90 … … 64 66 ! 65 67 INTEGER :: ji, jj ! dummy loop indices 66 REAL(wp) :: z phi0, zlam0, zbeta, zf068 REAL(wp) :: zbeta, zf0 67 69 REAL(wp) :: zti, ztj ! local scalars 68 70 !!------------------------------------------------------------------------------- … … 77 79 ! Position coordinates (in kilometers) 78 80 ! ========== 79 #if defined key_agrif 80 IF( Agrif_Root() ) THEN81 #endif 82 zlam0 = -REAL(Ni0glo,wp) * 0.5 * 1.e-3 * rn_dx83 zphi0 = -REAL(Nj0glo,wp) * 0.5 * 1.e-3 * rn_dy81 ! offset is given at first f-point, i.e. at (i,j) = (nn_hls+1, nn_hls+1) 82 ! Here we assume the grid is centred around a T-point at the middle of 83 ! of the domain (hence domain size is odd) 84 roffsetx = (-REAL(Ni0glo-1, wp) + 1._wp) * 0.5 * 1.e-3 * rn_dx 85 roffsety = (-REAL(Nj0glo-1, wp) + 1._wp) * 0.5 * 1.e-3 * rn_dy 84 86 #if defined key_agrif 85 ELSE 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 & 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 & 90 & + ( Agrif_Iy() + nbghostcells - 1 ) * Agrif_irhoy() * rn_dy * 1.e-3 - ( 0.5_wp + nbghostcells ) * rn_dy * 1.e-3 91 ENDIF 92 #endif 87 IF( .NOT.Agrif_Root() ) THEN 88 ! deduce offset from parent: 89 roffsetx = Agrif_Parent(roffsetx) & 90 & + (-(nbghostcells_x - 1) + (Agrif_Parent(nbghostcells_x ) + Agrif_Ix()-2)*Agrif_Rhox()) * 1.e-3 * rn_dx 91 roffsety = Agrif_Parent(roffsety) & 92 & + (-(nbghostcells_y_s - 1) + (Agrif_Parent(nbghostcells_y_s) + Agrif_Iy()-2)*Agrif_Rhoy()) * 1.e-3 * rn_dy 93 ENDIF 94 #endif 95 DO_2D( nn_hls, nn_hls, nn_hls, nn_hls ) 96 zti = REAL( mig0(ji)-1, wp ) ! start at i=0 in the global grid without halos 97 ztj = REAL( mjg0(jj)-1, wp ) ! start at j=0 in the global grid without halos 93 98 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 halos 96 ztj = REAL( mjg0(jj), wp ) - 0.5_wp ! start at j=0.5 in the global grid without halos 97 98 plamt(ji,jj) = zlam0 + rn_dx * 1.e-3 * zti 99 plamu(ji,jj) = zlam0 + rn_dx * 1.e-3 * ( zti + 0.5_wp ) 99 plamt(ji,jj) = roffsetx + rn_dx * 1.e-3 * ( zti - 0.5_wp ) 100 plamu(ji,jj) = roffsetx + rn_dx * 1.e-3 * zti 100 101 plamv(ji,jj) = plamt(ji,jj) 101 102 plamf(ji,jj) = plamu(ji,jj) 102 103 103 pphit(ji,jj) = zphi0 + rn_dy * 1.e-3 * ztj104 pphiv(ji,jj) = zphi0 + rn_dy * 1.e-3 * ( ztj + 0.5_wp )104 pphit(ji,jj) = roffsety + rn_dy * 1.e-3 * ( ztj - 0.5_wp ) 105 pphiv(ji,jj) = roffsety + rn_dy * 1.e-3 * ztj 105 106 pphiu(ji,jj) = pphit(ji,jj) 106 107 pphif(ji,jj) = pphiv(ji,jj) -
NEMO/branches/2021/ticket2669_isf_fluxes/tests/VORTEX/MY_SRC/usrdef_nam.F90
r14433 r14994 60 60 ! 61 61 INTEGER :: ios ! Local integer 62 INTEGER :: ighost_n, ighost_s, ighost_w, ighost_e 62 63 REAL(wp):: zlx, zly, zh ! Local scalars 63 64 !! … … 83 84 kk_cfg = nINT( rn_dx ) 84 85 ! 86 #if defined key_agrif 85 87 IF( Agrif_Root() ) THEN ! Global Domain size: VORTEX global domain is 1800 km x 1800 Km x 5000 m 88 #endif 86 89 kpi = NINT( 1800.e3 / rn_dx ) + 3 87 90 kpj = NINT( 1800.e3 / rn_dy ) + 3 91 #if defined key_agrif 88 92 ELSE ! Global Domain size: add nbghostcells + 1 "land" point on each side 89 kpi = nbcellsx + 2 * ( nbghostcells + 1 ) 90 kpj = nbcellsy + 2 * ( nbghostcells + 1 ) 91 !!$ kpi = nbcellsx + nbghostcells_x + nbghostcells_x + 2 92 !!$ kpj = nbcellsy + nbghostcells_y_s + nbghostcells_y_n + 2 93 ! At this stage, child ghosts have not been set 94 ighost_w = nbghostcells 95 ighost_e = nbghostcells 96 ighost_s = nbghostcells 97 ighost_n = nbghostcells 98 99 IF ( Agrif_Ix() == 1 ) ighost_w = 1 100 IF ( Agrif_Ix() + nbcellsx/AGRIF_Irhox() == Agrif_Parent(Ni0glo) - 1 ) ighost_e = 1 101 IF ( Agrif_Iy() == 1 ) ighost_s = 1 102 IF ( Agrif_Iy() + nbcellsy/AGRIF_Irhoy() == Agrif_Parent(Nj0glo) - 1 ) ighost_n = 1 103 ! kpi = nbcellsx + 2 * ( nbghostcells + 1 ) 104 ! kpj = nbcellsy + 2 * ( nbghostcells + 1 ) 105 kpi = nbcellsx + ighost_w + ighost_e 106 kpj = nbcellsy + ighost_s + ighost_n 93 107 ENDIF 108 #endif 94 109 kpk = NINT( 5000._wp / rn_dz ) + 1 95 110 !
Note: See TracChangeset
for help on using the changeset viewer.