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 14223 for NEMO/trunk/tests/VORTEX/MY_SRC – NEMO

Ignore:
Timestamp:
2020-12-19T11:22:45+01:00 (3 years ago)
Author:
smasson
Message:

trunk: remove patch for compatibility with the old trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/tests/VORTEX/MY_SRC/usrdef_hgr.F90

    r13295 r14223  
    8080      IF( Agrif_Root() ) THEN 
    8181#endif 
    82          ! Compatibility WITH old version:  
    83          ! jperio = 0 =>  Ni0glo = jpigo_old_version 
    84          !            =>  jpiglo-1 replaced by Ni0glo-1 
    85          zlam0 = -REAL( (Ni0glo-1)/2, wp) * 1.e-3 * rn_dx 
    86          zphi0 = -REAL( (Nj0glo-1)/2, wp) * 1.e-3 * rn_dy  
     82         zlam0 = -REAL(Ni0glo, wp) * 0.5 * 1.e-3 * rn_dx 
     83         zphi0 = -REAL(Nj0glo, wp) * 0.5 * 1.e-3 * rn_dy 
    8784#if defined key_agrif 
    8885      ELSE 
    8986         ! ! let lower left longitude and latitude from parent 
    90          ! Compatibility WITH old version:  
    91          ! jperio = 0 =>  Ni0glo = jpigo_old_version 
    92          !            =>  Agrif_parent(jpiglo)-1 replaced by  Agrif_parent(Ni0glo)-1 
    93          zlam0 = ( 0.5_wp - REAL( ( Agrif_parent(Ni0glo)-1 ) / 2, wp) ) * 1.e-3 * Agrif_irhox() * rn_dx  & 
     87         zlam0 = ( 0.5_wp - REAL(Ni0glo, wp) * 0.5 ) * 1.e-3 * Agrif_irhox() * rn_dx  & 
    9488            &  + ( Agrif_Ix() + nbghostcells - 1 ) * Agrif_irhox() * rn_dx * 1.e-3 - ( 0.5_wp + nbghostcells ) * rn_dx * 1.e-3 
    95          zphi0 = ( 0.5_wp - REAL( ( Agrif_parent(Nj0glo)-1 ) / 2, wp) ) * 1.e-3 * Agrif_irhoy() * rn_dy  & 
     89         zphi0 = ( 0.5_wp - REAL(Nj0glo, wp) * 0.5 ) * 1.e-3 * Agrif_irhoy() * rn_dy  & 
    9690            &  + ( Agrif_Iy() + nbghostcells - 1 ) * Agrif_irhoy() * rn_dy * 1.e-3 - ( 0.5_wp + nbghostcells ) * rn_dy * 1.e-3 
    9791      ENDIF  
    9892#endif 
    9993          
    100       DO_2D( 1, 1, 1, 1 ) 
    101          zti = REAL( mig0_oldcmp(ji) - 1, wp )   ! start at i=0 in the global grid without halos 
    102          ztj = REAL( mjg0_oldcmp(jj) - 1, wp )   ! start at j=0 in the global grid without halos 
     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 
    10397          
    10498         plamt(ji,jj) = zlam0 + rn_dx * 1.e-3 *   zti 
Note: See TracChangeset for help on using the changeset viewer.