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 389 for trunk/NEMO/OPA_SRC/lib_mpp.F90 – NEMO

Ignore:
Timestamp:
2006-03-09T18:22:04+01:00 (18 years ago)
Author:
opalod
Message:

RB:nemo_v1_update_038: first integration of Agrif :

  • configuration parameters are just integer when agrif is used
  • add call to agrif routines with key_agrif
File:
1 edited

Legend:

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

    r311 r389  
    9595   !!  MPI  variable definition !! 
    9696   !! ========================= !! 
     97!$AGRIF_DO_NOT_TREAT 
    9798#  include <mpif.h> 
     99!$AGRIF_END_DO_NOT_TREAT 
    98100 
    99101   INTEGER ::   & 
     
    286288      CASE ( 'S' )                ! Standard mpi send (blocking) 
    287289         WRITE(numout,*) '           Standard blocking mpi send (send)' 
     290#if defined key_AGRIF 
     291         IF ( Agrif_Root() ) THEN 
     292#endif       
    288293         CALL mpi_init( ierr ) 
     294#if defined key_AGRIF 
     295         ENDIF 
     296#endif     
    289297      CASE ( 'B' )                ! Buffer mpi send (blocking) 
    290298         WRITE(numout,*) '           Buffer blocking mpi send (bsend)' 
     299#if defined key_AGRIF 
     300         IF ( Agrif_Root() ) THEN 
     301#endif       
    291302         CALL mpi_init_opa( ierr ) 
     303#if defined key_AGRIF 
     304         ENDIF 
     305#endif     
    292306      CASE ( 'I' )                ! Immediate mpi send (non-blocking send) 
    293307         WRITE(numout,*) '           Immediate non-blocking send (isend)' 
    294308         l_isend = .TRUE. 
     309#if defined key_AGRIF 
     310         IF ( Agrif_Root() ) THEN 
     311#endif       
    295312         CALL mpi_init( ierr ) 
     313#if defined key_AGRIF 
     314         ENDIF 
     315#endif     
    296316      CASE DEFAULT 
    297317         WRITE(numout,cform_err) 
     
    43984418   SUBROUTINE mpi_init_opa(code) 
    43994419      IMPLICIT NONE 
     4420 
     4421!$AGRIF_DO_NOT_TREAT 
    44004422#     include <mpif.h> 
     4423!$AGRIF_END_DO_NOT_TREAT 
    44014424 
    44024425      INTEGER                                 :: code,rang 
Note: See TracChangeset for help on using the changeset viewer.