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/CANAL/MY_SRC/usrdef_hgr.F90 – NEMO

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

trunk: remove patch for compatibility with the old trunk

File:
1 edited

Legend:

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

    r13295 r14223  
    7777      ! Position coordinates (in kilometers) 
    7878      !                          ========== 
    79       zlam0 = -REAL(NINT(Ni0glo*rn_0xratio)-1, wp) * rn_dx 
    80       zphi0 = -REAL(NINT(Nj0glo*rn_0yratio)-1, wp) * rn_dy  
     79      zlam0 = -REAL(Ni0glo, wp) * rn_0xratio * rn_dx 
     80      zphi0 = -REAL(Nj0glo, wp) * rn_0yratio * rn_dy 
    8181 
    8282#if defined key_agrif 
     
    9090#endif 
    9191          
    92       DO_2D( 1, 1, 1, 1 )          
    93          zti = REAL( mig0_oldcmp(ji) - 1, wp )   ! start at i=0 in the global grid without halos 
    94          ztj = REAL( mjg0_oldcmp(jj) - 1, wp )   ! start at j=0 in the global grid without halos 
     92      DO_2D( nn_hls, nn_hls, nn_hls, nn_hls )          
     93         zti = REAL( mig0(ji), wp ) - 0.5_wp  ! start at i=0.5 in the global grid without halos 
     94         ztj = REAL( mjg0(jj), wp ) - 0.5_wp  ! start at j=0.5 in the global grid without halos 
    9595          
    9696         plamt(ji,jj) = zlam0 + rn_dx *   zti 
Note: See TracChangeset for help on using the changeset viewer.