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 2335 for branches/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC/OBS/mpp_map.F90 – NEMO

Ignore:
Timestamp:
2010-10-29T09:39:51+02:00 (14 years ago)
Author:
gm
Message:

v3.3beta: Suppress obsolete key_mpp_shmem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC/OBS/mpp_map.F90

    r2287 r2335  
    44   !! NEMOVAR: MPP global grid point mapping to processors 
    55   !!====================================================================== 
     6   !! History :  2.0  ! 2007-08  (K. Mogensen)  Original code 
     7   !!---------------------------------------------------------------------- 
    68 
    79   !!---------------------------------------------------------------------- 
    8    !! mppmap      : Global array which maps i,j to area number. 
    9    !! mppmap_init : Initialize mppmap. 
     10   !!  mppmap_init : Initialize mppmap. 
    1011   !!---------------------------------------------------------------------- 
    11    !! * Modules used    
    12    USE par_kind, ONLY : &   ! Precision variables 
    13       & wp 
    14    USE par_oce, ONLY : &    ! Ocean parameters 
    15       & jpi,   & 
    16       & jpj 
    17    USE dom_oce, ONLY : &    ! Ocean space and time domain variables 
    18       & mig,   & 
    19       & mjg,   &   
    20       & nldi,  & 
    21       & nlei,  & 
    22       & nldj,  & 
    23       & nlej,  & 
    24       & narea  
     12   USE par_kind, ONLY :   wp            ! Precision variables 
     13   USE par_oce , ONLY :   jpi, jpj      ! Ocean parameters 
     14   USE dom_oce , ONLY :   mig, mjg, nldi, nlei, nldj, nlej, narea   ! Ocean space and time domain variables 
    2515#if defined key_mpp_mpi 
    26    USE lib_mpp, ONLY : &    ! MPP library 
    27       & mpi_comm_opa 
     16   USE lib_mpp, ONLY :   mpi_comm_opa   ! MPP library 
    2817#endif 
    29    USE in_out_manager 
     18   USE in_out_manager   ! I/O manager 
    3019 
    3120   IMPLICIT NONE 
    32  
    33    !! * Routine accessibility 
    3421   PRIVATE 
    3522 
    36    PUBLIC & 
    37       & mppmap_init,        & 
    38       & mppmap 
     23   PUBLIC ::   mppmap_init, mppmap   !: ??? 
    3924 
    40    !! * Module variables 
    41  
    42    INTEGER, DIMENSION(:,:), ALLOCATABLE :: & 
    43       & mppmap 
     25   INTEGER, DIMENSION(:,:), ALLOCATABLE ::   mppmap   ! ??? 
    4426 
    4527   !!---------------------------------------------------------------------- 
    4628   !! NEMO/OPA 3.3 , NEMO Consortium (2010) 
    4729   !! $Id$ 
    48    !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 
     30   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
    4931   !!---------------------------------------------------------------------- 
    50  
    5132CONTAINS 
    5233 
     
    6041      !! 
    6142      !! ** Action  : This does only work for MPI.  
    62       !!              It does not work for SHMEM. 
    6343      !! 
    6444      !! References : http://www.mpi-forum.org 
    65       !! 
    66       !! History : 
    67       !!        !  07-08  (K. Mogensen)  Original code 
    6845      !!---------------------------------------------------------------------- 
    69  
    70       !! * Arguments 
    71       INTEGER, DIMENSION(:,:), ALLOCATABLE :: imppmap 
     46      INTEGER, DIMENSION(:,:), ALLOCATABLE ::   imppmap   ! 
    7247#if defined key_mpp_mpi 
    73       !! * Local declarations 
    7448      INTEGER :: ierr 
    7549INCLUDE 'mpif.h' 
    7650#endif 
     51      !!---------------------------------------------------------------------- 
    7752 
    7853      ALLOCATE( & 
     
    9570 
    9671      ! Call the MPI library to find the max across processors 
    97  
    98       CALL mpi_allreduce( imppmap, mppmap, jpiglo*jpjglo, mpi_integer, & 
     72      CALL mpi_allreduce( imppmap, mppmap, jpiglo*jpjglo, mpi_integer,   & 
    9973         &                mpi_max, mpi_comm_opa, ierr ) 
    100 #elif defined key_mpp_shmem 
    101 #error "Only MPI support for MPP in NEMOVAR" 
    10274#else       
    10375       
    104       ! Just copy the data 
    105  
     76      ! No MPP: Just copy the data 
    10677      mppmap(:,:) = imppmap(:,:) 
    107  
    10878#endif 
    109  
     79      ! 
    11080   END SUBROUTINE mppmap_init 
    11181 
     82   !!====================================================================== 
    11283END MODULE mpp_map 
Note: See TracChangeset for help on using the changeset viewer.