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

Changeset 14848


Ignore:
Timestamp:
2021-05-12T08:41:26+02:00 (3 years ago)
Author:
smasson
Message:

trunk: reduce minimum domain size, #2671

File:
1 edited

Legend:

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

    r14433 r14848  
    632632      klci(1:iresti      ,:) = kimax 
    633633      klci(iresti+1:knbi ,:) = kimax-1 
    634       IF( MINVAL(klci) < 2*i2hls ) THEN 
    635          WRITE(ctmp1,*) '   mpp_basesplit: minimum value of jpi must be >= ', 2*i2hls 
     634      IF( MINVAL(klci) < 3*khls ) THEN 
     635         WRITE(ctmp1,*) '   mpp_basesplit: minimum value of jpi must be >= ', 3*khls 
    636636         WRITE(ctmp2,*) '   We have ', MINVAL(klci) 
    637         CALL ctl_stop( 'STOP', ctmp1, ctmp2 ) 
     637         CALL ctl_stop( 'STOP', ctmp1, ctmp2 ) 
    638638      ENDIF 
    639639      IF( l_NFold ) THEN 
     
    650650      ENDIF 
    651651      klcj(:,1:irestj) = kjmax 
    652       IF( MINVAL(klcj) < 2*i2hls ) THEN 
    653          WRITE(ctmp1,*) '   mpp_basesplit: minimum value of jpj must be >= ', 2*i2hls 
     652      IF( MINVAL(klcj) < 3*khls ) THEN 
     653         WRITE(ctmp1,*) '   mpp_basesplit: minimum value of jpj must be >= ', 3*khls 
    654654         WRITE(ctmp2,*) '   We have ', MINVAL(klcj) 
    655655         CALL ctl_stop( 'STOP', ctmp1, ctmp2 ) 
     
    729729      iszjref = jpiglo*jpjglo+1 
    730730      ! 
    731       iszimin = 4*nn_hls          ! minimum size of the MPI subdomain so halos are always adressing neighbor inner domain 
    732       iszjmin = 4*nn_hls 
     731      iszimin = 3*nn_hls          ! minimum size of the MPI subdomain so halos are always adressing neighbor inner domain 
     732      iszjmin = 3*nn_hls 
    733733      IF( c_NFtype == 'T' )   iszjmin = MAX(iszjmin, 2+3*nn_hls)   ! V and F folding must be outside of southern halos 
    734734      IF( c_NFtype == 'F' )   iszjmin = MAX(iszjmin, 1+3*nn_hls)   ! V and F folding must be outside of southern halos 
     
    760760         ENDIF 
    761761      END DO 
     762      IF( inbimax == 0 ) THEN 
     763         WRITE(ctmp1,'(a,i2,a,i2)') '   mpp_ini bestpartition: Ni0glo (', Ni0glo, ') is too small to be used with nn_hls = ', nn_hls 
     764         CALL ctl_stop( 'STOP', ctmp1 ) 
     765      ENDIF 
     766      IF( inbjmax == 0 ) THEN 
     767         WRITE(ctmp1,'(a,i2,a,i2)') '   mpp_ini bestpartition: Nj0glo (', Nj0glo, ') is too small to be used with nn_hls = ', nn_hls 
     768         CALL ctl_stop( 'STOP', ctmp1 ) 
     769      ENDIF 
    762770 
    763771      ! combine these 2 lists to get all possible knbi*knbj <  inbijmax 
Note: See TracChangeset for help on using the changeset viewer.