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 635 for trunk/NEMO/OPA_SRC – NEMO

Changeset 635 for trunk/NEMO/OPA_SRC


Ignore:
Timestamp:
2007-03-07T14:26:45+01:00 (17 years ago)
Author:
opalod
Message:

nemo_v2_update_007:RB: add key_mpp_dyndist for dynamic distribution with key_agrif activated

Location:
trunk/NEMO/OPA_SRC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/lib_mpp.F90

    r629 r635  
    9898   !! The processor number is a required power of two : 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024,... 
    9999   INTEGER, PARAMETER ::   & 
    100       nprocmax = 2**10,    &  ! maximun dimension 
    101       ndim_mpp = jpnij        ! dimension for this simulation 
     100      nprocmax = 2**10     ! maximun dimension 
    102101 
    103102#if defined key_mpp_mpi 
     
    416415            npvm_tids(0) = npvm_mytid 
    417416            npvm_me = 0 
    418             IF( ndim_mpp > nprocmax ) THEN 
     417            IF( jpnij > nprocmax ) THEN 
    419418               WRITE(ctmp1,*) 'npvm_mytid=', npvm_mytid, ' too great' 
    420419               CALL ctl_stop( ctmp1 ) 
    421420 
    422421            ELSE 
    423                npvm_nproc = ndim_mpp 
     422               npvm_nproc = jpnij 
    424423            ENDIF 
    425424 
     
    536535         ENDIF 
    537536         !          --- END receive dimension --- 
    538          IF( ndim_mpp > nprocmax ) THEN 
     537         IF( jpnij > nprocmax ) THEN 
    539538            WRITE(ctmp1,*) 'mytid=',nt3d_mytid,' too great' 
    540539            CALL ctl_stop( ctmp1 ) 
    541540         ELSE 
    542             nt3d_nproc =  ndim_mpp 
     541            nt3d_nproc =  jpnij 
    543542         ENDIF 
    544543         IF( mpparent_print /= 0 ) THEN 
  • trunk/NEMO/OPA_SRC/par_oce.F90

    r511 r635  
    2525   !!      so jpiglo=jpi and jpjglo=jpj 
    2626 
    27    INTEGER, PUBLIC, PARAMETER ::    &  !: 
     27#if ! defined key_mpp_dyndist  
     28   INTEGER, PUBLIC, PARAMETER ::    &  !:  
    2829      jpni   = 1,                   &  !: number of processors following i  
    2930      jpnj   = 1,                   &  !: number of processors following j 
    30       jpnij  = 1,                   &  !: nb of local domain = nb of processors  
     31      jpnij  = 1                       !: nb of local domain = nb of processors  
    3132      !                                !  ( <= jpni x jpnj ) 
     33#else 
     34   INTEGER, PUBLIC ::               &  ! 
     35      jpni      ,                   &  !: number of processors following i  
     36      jpnj      ,                   &  !: number of processors following j 
     37      jpnij                            !: nb of local domain = nb of processors  
     38      !                                !  ( <= jpni x jpnj ) 
     39#endif 
     40 
     41   INTEGER, PUBLIC, PARAMETER ::    &  !: 
    3242      jpr2di = 0,                   &  !: number of columns for extra outer halo  
    3343      jpr2dj = 0,                   &  !: number of rows    for extra outer halo  
Note: See TracChangeset for help on using the changeset viewer.