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 14275 for NEMO/trunk/src/OCE/LBC – NEMO

Ignore:
Timestamp:
2021-01-07T13:13:16+01:00 (3 years ago)
Author:
smasson
Message:

trunk: suppress nproc ( = mpprank = narea-1)

Location:
NEMO/trunk/src/OCE/LBC
Files:
2 edited

Legend:

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

    r14229 r14275  
    122122#endif 
    123123 
    124    INTEGER, PARAMETER         ::   nprocmax = 2**10   ! maximun dimension (required to be a power of 2) 
    125  
    126124   INTEGER, PUBLIC ::   mppsize        ! number of process 
    127125   INTEGER, PUBLIC ::   mpprank        ! process number  [ 0 - size-1 ] 
     
    10021000      !!---------------------------------------------------------------------- 
    10031001#if ! defined key_mpi_off 
    1004       !-$$     WRITE (numout,*) 'mpp_ini_znl ', nproc, ' - ngrp_world     : ', ngrp_world 
    1005       !-$$     WRITE (numout,*) 'mpp_ini_znl ', nproc, ' - mpi_comm_world : ', mpi_comm_world 
    1006       !-$$     WRITE (numout,*) 'mpp_ini_znl ', nproc, ' - mpi_comm_oce   : ', mpi_comm_oce 
     1002      !-$$     WRITE (numout,*) 'mpp_ini_znl ', mpprank, ' - ngrp_world     : ', ngrp_world 
     1003      !-$$     WRITE (numout,*) 'mpp_ini_znl ', mpprank, ' - mpi_comm_world : ', mpi_comm_world 
     1004      !-$$     WRITE (numout,*) 'mpp_ini_znl ', mpprank, ' - mpi_comm_oce   : ', mpi_comm_oce 
    10071005      ! 
    10081006      ALLOCATE( kwork(jpnij), STAT=ierr ) 
     
    10151013         ! 
    10161014         CALL MPI_ALLGATHER ( njmpp, 1, mpi_integer, kwork, 1, mpi_integer, mpi_comm_oce, ierr ) 
    1017          !-$$        WRITE (numout,*) 'mpp_ini_znl ', nproc, ' - kwork pour njmpp : ', kwork 
     1015         !-$$        WRITE (numout,*) 'mpp_ini_znl ', mpprank, ' - kwork pour njmpp : ', kwork 
    10181016         !-$$        CALL flush(numout) 
    10191017         ! 
     
    10251023            ENDIF 
    10261024         END DO 
    1027          !-$$        WRITE (numout,*) 'mpp_ini_znl ', nproc, ' - ndim_rank_znl : ', ndim_rank_znl 
     1025         !-$$        WRITE (numout,*) 'mpp_ini_znl ', mpprank, ' - ndim_rank_znl : ', ndim_rank_znl 
    10281026         !-$$        CALL flush(numout) 
    10291027         ! Allocate the right size to nrank_znl 
     
    10381036            ENDIF 
    10391037         END DO 
    1040          !-$$        WRITE (numout,*) 'mpp_ini_znl ', nproc, ' - nrank_znl : ', nrank_znl 
     1038         !-$$        WRITE (numout,*) 'mpp_ini_znl ', mpprank, ' - nrank_znl : ', nrank_znl 
    10411039         !-$$        CALL flush(numout) 
    10421040 
    10431041         ! Create the opa group 
    10441042         CALL MPI_COMM_GROUP(mpi_comm_oce,ngrp_opa,ierr) 
    1045          !-$$        WRITE (numout,*) 'mpp_ini_znl ', nproc, ' - ngrp_opa : ', ngrp_opa 
     1043         !-$$        WRITE (numout,*) 'mpp_ini_znl ', mpprank, ' - ngrp_opa : ', ngrp_opa 
    10461044         !-$$        CALL flush(numout) 
    10471045 
    10481046         ! Create the znl group from the opa group 
    10491047         CALL MPI_GROUP_INCL  ( ngrp_opa, ndim_rank_znl, nrank_znl, ngrp_znl, ierr ) 
    1050          !-$$        WRITE (numout,*) 'mpp_ini_znl ', nproc, ' - ngrp_znl ', ngrp_znl 
     1048         !-$$        WRITE (numout,*) 'mpp_ini_znl ', mpprank, ' - ngrp_znl ', ngrp_znl 
    10511049         !-$$        CALL flush(numout) 
    10521050 
    10531051         ! Create the znl communicator from the opa communicator, ie the pool of procs in the same row 
    10541052         CALL MPI_COMM_CREATE ( mpi_comm_oce, ngrp_znl, ncomm_znl, ierr ) 
    1055          !-$$        WRITE (numout,*) 'mpp_ini_znl ', nproc, ' - ncomm_znl ', ncomm_znl 
     1053         !-$$        WRITE (numout,*) 'mpp_ini_znl ', mpprank, ' - ncomm_znl ', ncomm_znl 
    10561054         !-$$        CALL flush(numout) 
    10571055         ! 
  • NEMO/trunk/src/OCE/LBC/mppini.F90

    r14229 r14275  
    133133      !!                    nbondi    : mark for "east-west local boundary" 
    134134      !!                    nbondj    : mark for "north-south local boundary" 
    135       !!                    nproc     : number for local processor 
    136135      !!                    noea      : number for local neighboring processor 
    137136      !!                    nowe      : number for local neighboring processor 
     
    506505 
    507506      ! just to save nono etc for all proc 
    508       ! warning ii*ij (zone) /= nproc (processors)! 
     507      ! warning ii*ij (zone) /= mpprank (processors)! 
    509508      ! ioso = zone number, ii_noso = proc number 
    510509      ii_noso(:) = -1 
     
    641640         WRITE(inum,'(6i8,a,3i8,a)') jpnij,jpimax,jpjmax,jpk,jpiglo,jpjglo,& 
    642641   &           ' ( local: ',narea,jpi,jpj,' )' 
    643          WRITE(inum,'(a)') 'nproc   jpi  jpj Nis0 Njs0 Nie0 Nje0 nimp njmp nono noso nowe noea nbondi nbondj ' 
     642         WRITE(inum,'(a)') 'narea   jpi  jpj Nis0 Njs0 Nie0 Nje0 nimp njmp nono noso nowe noea nbondi nbondj ' 
    644643 
    645644         DO jproc = 1, jpnij 
    646             WRITE(inum,'(13i5,2i7)')   jproc-1,  jpiall(jproc),  jpjall(jproc),   & 
     645            WRITE(inum,'(13i5,2i7)')     jproc,  jpiall(jproc),  jpjall(jproc),   & 
    647646               &                                nis0all(jproc), njs0all(jproc),   & 
    648647               &                                nie0all(jproc), nje0all(jproc),   & 
     
    668667      ENDIF 
    669668      ! 
    670       nproc = narea-1 
    671669      IF(lwp) THEN 
    672670         WRITE(numout,*) 
    673671         WRITE(numout,*) '   resulting internal parameters : ' 
    674          WRITE(numout,*) '      nproc  = ', nproc 
     672         WRITE(numout,*) '      narea  = ', narea 
    675673         WRITE(numout,*) '      nowe   = ', nowe  , '   noea  =  ', noea 
    676674         WRITE(numout,*) '      nono   = ', nono  , '   noso  =  ', noso 
     
    13261324      ENDIF 
    13271325      ! 
    1328       CALL flio_dom_set ( jpnij, nproc, idid, iglo, iloc, iabsf, iabsl, ihals, ihale, 'BOX', nidom) 
     1326      CALL flio_dom_set ( jpnij, narea-1, idid, iglo, iloc, iabsf, iabsl, ihals, ihale, 'BOX', nidom) 
    13291327      ! 
    13301328   END SUBROUTINE init_ioipsl 
Note: See TracChangeset for help on using the changeset viewer.