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 15296 – NEMO

Changeset 15296


Ignore:
Timestamp:
2021-09-28T09:48:20+02:00 (3 years ago)
Author:
smasson
Message:

trunk: minor fix in init_excl_landpt (mppini) when jpj is very small

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/LBC/mppini.F90

    r15267 r15296  
    168168      IF(lwp) THEN 
    169169            WRITE(numout,*) '   Namelist nammpp' 
    170          IF( jpni < 1 .OR. jpnj < 1  ) THEN 
     170         IF( jpni < 1 .OR. jpnj < 1 ) THEN 
    171171            WRITE(numout,*) '      jpni and jpnj will be calculated automatically' 
    172172         ELSE 
     
    712712      isziref = jpiglo*jpjglo+1   ! define a value that is larger than the largest possible 
    713713      iszjref = jpiglo*jpjglo+1 
     714      ! 
     715      ! WARNING, see also init_excl_landpt: minimum subdomain size defined here according to nn_hls (and not n_hlsmax) 
     716      ! --> If, one day, we want to use local halos largers than nn_hls, we must replace nn_hls by n_hlsmax 
    714717      ! 
    715718      iszimin = 3*nn_hls          ! minimum size of the MPI subdomain so halos are always adressing neighbor inner domain 
     
    11561159      l_IdoNFold = .FALSE. 
    11571160      ! 
    1158       DO jh = 1, n_hlsmax    ! different halo size 
     1161      ! WARNING, see also bestpartition: minimum subdomain size defined in bestpartition according to nn_hls. 
     1162      ! If, one day, we want to use local halos largers than nn_hls, we must replace nn_hls by n_hlsmax in bestpartition 
     1163      ! 
     1164      DO jh = 1, MIN(nn_hls, n_hlsmax)   ! different halo size 
    11591165         ! 
    11601166         ipi = Ni_0 + 2*jh   ! local domain size 
     
    11651171         CALL lbc_lnk('mppini', zmsk, 'T', 1._wp, khls = jh)                 ! fill halos 
    11661172         !         
    1167          iiwe = jh   ;   iiea = Ni_0   ! bottom-left corfer - 1 of the sent data 
     1173         iiwe = jh   ;   iiea = Ni_0   ! bottom-left corner - 1 of the sent data 
    11681174         ijso = jh   ;   ijno = Nj_0 
    11691175         IF( nn_comm == 1 ) THEN  
     
    11851191         IF( NINT(SUM( zmsk(iiea+1:iiea+jh  ,ijno+1:ijno+jh  ) )) == 0 )   mpiSnei(jh,jpne) = -1 
    11861192         ! 
    1187          iiwe = iiwe-jh   ;   iiea = iiea+jh   ! bottom-left corfer - 1 of the received data 
     1193         iiwe = iiwe-jh   ;   iiea = iiea+jh   ! bottom-left corner - 1 of the received data 
    11881194         ijso = ijso-jh   ;   ijno = ijno+jh 
    11891195         ! do not send if we send only land points 
Note: See TracChangeset for help on using the changeset viewer.