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

Ignore:
Timestamp:
2021-06-18T16:35:25+02:00 (3 years ago)
Author:
gsamson
Message:

merge ticket2680_C1D_PAPA branch back into the trunk; see ticket #2680 for details

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

Legend:

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

    r14433 r15023  
    7676   PUBLIC   mpp_bcast_nml 
    7777   PUBLIC   tic_tac 
    78 #if defined key_mpp_off 
    79    PUBLIC MPI_wait 
    80    PUBLIC MPI_Wtime 
     78#if defined key_mpi_off 
     79   PUBLIC   MPI_wait 
     80   PUBLIC   MPI_waitall 
     81   PUBLIC   MPI_Wtime 
    8182#endif 
    8283 
     
    127128   INTEGER, PUBLIC, PARAMETER ::   MPI_REAL = 4 
    128129   INTEGER, PUBLIC, PARAMETER ::   MPI_DOUBLE_PRECISION = 8 
     130   INTEGER, PUBLIC, PARAMETER ::   MPI_REQUEST_NULL = 1 
    129131   LOGICAL, PUBLIC, PARAMETER ::   lk_mpp = .FALSE.    !: mpp flag 
     132   INTEGER, PUBLIC, DIMENSION(MPI_STATUS_SIZE) ::   MPI_STATUS_IGNORE = 1     ! out from mpi_wait 
     133   INTEGER, PUBLIC, DIMENSION(MPI_STATUS_SIZE) ::   MPI_STATUSES_IGNORE = 1   ! out from mpi_waitall 
    130134#endif 
    131135 
     
    14011405      INTEGER, DIMENSION(MPI_STATUS_SIZE), INTENT(  out) ::   status 
    14021406      INTEGER                            , INTENT(  out) ::   ierror 
     1407      IF (.FALSE.) THEN   ! to avoid compilation warning 
     1408         status(:) = -1 
     1409         ierror = -1 
     1410      ENDIF 
    14031411   END SUBROUTINE mpi_wait 
    14041412 
     1413   SUBROUTINE mpi_waitall(count, request, status, ierror) 
     1414      INTEGER                            , INTENT(in   ) :: count 
     1415      INTEGER, DIMENSION(count)          , INTENT(in   ) :: request 
     1416      INTEGER, DIMENSION(MPI_STATUS_SIZE), INTENT(  out) :: status 
     1417      INTEGER                            , INTENT(  out) :: ierror 
     1418      IF (.FALSE.) THEN   ! to avoid compilation warning 
     1419         status(:) = -1 
     1420         ierror = -1 
     1421      ENDIF 
     1422   END SUBROUTINE mpi_waitall 
    14051423 
    14061424   FUNCTION MPI_Wtime() 
  • NEMO/trunk/src/OCE/LBC/mppini.F90

    r14976 r15023  
    6262      !!---------------------------------------------------------------------- 
    6363      ! 
    64       nn_hls = 1 
    65       jpiglo = Ni0glo + 2 * nn_hls 
    66       jpjglo = Nj0glo + 2 * nn_hls 
    67       jpimax = jpiglo 
    68       jpjmax = jpjglo 
    69       jpi    = jpiglo 
    70       jpj    = jpjglo 
    71       jpk    = MAX( 2, jpkglo ) 
    72       jpij   = jpi*jpj 
    73       jpni   = 1 
    74       jpnj   = 1 
    75       jpnij  = jpni*jpnj 
    76       nimpp  = 1 
    77       njmpp  = 1 
    78       nidom  = FLIO_DOM_NONE 
     64      nn_comm = 1 
     65      nn_hls  = 1 
     66      jpiglo  = Ni0glo + 2 * nn_hls 
     67      jpjglo  = Nj0glo + 2 * nn_hls 
     68      jpimax  = jpiglo 
     69      jpjmax  = jpjglo 
     70      jpi     = jpiglo 
     71      jpj     = jpjglo 
     72      jpk     = MAX( 2, jpkglo ) 
     73      jpij    = jpi*jpj 
     74      jpni    = 1 
     75      jpnj    = 1 
     76      jpnij   = jpni*jpnj 
     77      nimpp   = 1 
     78      njmpp   = 1 
     79      nidom   = FLIO_DOM_NONE 
     80      ! 
     81      mpiSnei(:,:) = -1 
     82      mpiRnei(:,:) = -1 
     83      l_SelfPerio(1:2) = l_Iperio                  !  west,  east periodicity by itself 
     84      l_SelfPerio(3:4) = l_Jperio                  ! south, north periodicity by itself 
     85      l_SelfPerio(5:8) = l_Iperio .AND. l_Jperio   ! corners bi-periodicity by itself 
     86      l_IdoNFold = l_NFold                         ! is this process doing North fold? 
    7987      ! 
    8088      CALL init_doloop                       ! set start/end indices or do-loop depending on the halo width value (nn_hls) 
     
    532540      END DO 
    533541      ! 
    534       CALL init_excl_landpt      ! exclude exchanges which contain only land points 
     542      IF( jpnij > 1) CALL init_excl_landpt      ! exclude exchanges which contain only land points 
    535543      ! 
    536544      ! Save processor layout changes in ascii file 
Note: See TracChangeset for help on using the changeset viewer.