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 13065 for NEMO/branches/2020/dev_r12558_HPC-08_epico_Extra_Halo/src/OCE/LBC – NEMO

Ignore:
Timestamp:
2020-06-08T18:11:57+02:00 (4 years ago)
Author:
smasson
Message:

Extra_Halo: toward AGRIF compatibility, see #2366

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r12558_HPC-08_epico_Extra_Halo/src/OCE/LBC/mppini.F90

    r12993 r13065  
    163163           &             cn_ice, nn_ice_dta,                                     & 
    164164           &             ln_vol, nn_volctl, nn_rimwidth 
    165       NAMELIST/nammpp/ jpni, jpnj, ln_nnogather, ln_listonly 
     165      NAMELIST/nammpp/ jpni, jpnj, nn_hls, ln_nnogather, ln_listonly 
    166166      !!---------------------------------------------------------------------- 
    167167      ! 
     
    334334#if defined key_agrif 
    335335      IF( .NOT. Agrif_Root() ) THEN       ! AGRIF children: specific setting (cf. agrif_user.F90) 
    336          IF( jpiglo /= nbcellsx + 2 + 2*nbghostcells )   & 
    337             CALL ctl_stop( 'STOP', 'mpp_init: Agrif children requires jpiglo == nbcellsx + 2 + 2*nbghostcells' ) 
    338          IF( jpjglo /= nbcellsy + 2 + 2*nbghostcells )   & 
    339             CALL ctl_stop( 'STOP', 'mpp_init: Agrif children requires jpjglo == nbcellsy + 2 + 2*nbghostcells' ) 
     336         IF( jpiglo /= nbcellsx + 2 * ( nbghostcells + 1 + nn_hls ) )  & 
     337            CALL ctl_stop( 'STOP', 'mpp_init: Agrif children requires jpiglo == nbcellsx + 2*( nbghostcells + 1 + nn_hls )' ) 
     338         IF( jpjglo /= nbcellsy + 2 * ( nbghostcells + 1 + nn_hls ) )  & 
     339            CALL ctl_stop( 'STOP', 'mpp_init: Agrif children requires jpjglo == nbcellsy + 2*( nbghostcells + 1 + nn_hls )' ) 
    340340         IF( ln_use_jattr )   CALL ctl_stop( 'STOP', 'mpp_init:Agrif children requires ln_use_jattr = .false. ' ) 
    341341      ENDIF 
     
    12391239      !!---------------------------------------------------------------------- 
    12401240      INTEGER  ::   sxM, dxM, sxT, dxT, jn 
    1241       INTEGER  ::   njmppmax 
    1242       !!---------------------------------------------------------------------- 
    1243       ! 
    1244       njmppmax = MAXVAL( njmppt ) 
     1241      !!---------------------------------------------------------------------- 
    12451242      ! 
    12461243      !initializes the north-fold communication variables 
     
    12481245      nsndto     = 0 
    12491246      ! 
    1250       IF ( njmpp == njmppmax ) THEN      ! if I am a process in the north 
     1247      IF ( njmpp == MAXVAL( njmppt ) ) THEN      ! if I am a process in the north 
    12511248         ! 
    12521249         !sxM is the first point (in the global domain) needed to compute the north-fold for the current process 
Note: See TracChangeset for help on using the changeset viewer.