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 2668 for branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/LBC/lib_mpp.F90 – NEMO

Ignore:
Timestamp:
2011-03-07T20:14:16+01:00 (13 years ago)
Author:
trackstand2
Message:

Added jpni, jpnj and jpnij to nammpp namelist. Suppressed nammpp_dyndist section.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_r2586_dynamic_mem/NEMOGCM/NEMO/OPA_SRC/LBC/lib_mpp.F90

    r2636 r2668  
    232232      LOGICAL ::   mpi_was_called 
    233233      ! 
    234       NAMELIST/nammpp/ cn_mpi_send, nn_buffer 
     234      NAMELIST/nammpp/ cn_mpi_send, nn_buffer, jpni, jpnj, jpnij 
    235235      !!---------------------------------------------------------------------- 
    236236      ! 
     
    240240      WRITE(ldtxt(ii),*) '~~~~~~ '                                                                ;   ii = ii + 1 
    241241      ! 
     242      jpni = -1; jpnj = -1; jpnij = -1 
    242243      REWIND( kumnam )               ! Namelist namrun : parameters of the run 
    243244      READ  ( kumnam, nammpp ) 
     
    246247      WRITE(ldtxt(ii),*) '      mpi send type                      cn_mpi_send = ', cn_mpi_send   ;   ii = ii + 1 
    247248      WRITE(ldtxt(ii),*) '      size in bytes of exported buffer   nn_buffer   = ', nn_buffer     ;   ii = ii + 1 
     249 
     250      IF(jpnij < 1)THEN 
     251         ! If jpnij is not specified in namelist then we calculate it - this 
     252         ! means there will be no land cutting out. 
     253         jpnij = jpni * jpnj 
     254      END IF 
     255 
     256      IF( (jpni < 1) .OR. (jpnj < 1) )THEN 
     257         WRITE(ldtxt(ii),*) '      jpni, jpnj and jpnij will be calculated automatically'; ii = ii + 1 
     258      ELSE 
     259         WRITE(ldtxt(ii),*) '      processor grid extent in i         jpni = ',jpni; ii = ii + 1 
     260         WRITE(ldtxt(ii),*) '      processor grid extent in j         jpnj = ',jpnj; ii = ii + 1 
     261         WRITE(ldtxt(ii),*) '      number of local domains           jpnij = ',jpnij; ii = ii +1 
     262      END IF 
    248263 
    249264      CALL mpi_initialized ( mpi_was_called, code ) 
Note: See TracChangeset for help on using the changeset viewer.