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

Ignore:
Timestamp:
2006-11-13T15:08:20+01:00 (17 years ago)
Author:
opalod
Message:

nemo_v1_bugfix_076:RB: do not use coupled interface changes in lib_mpp with Agrif (should be temporary...)

File:
1 edited

Legend:

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

    r532 r570  
    307307      IF( Agrif_Root() ) THEN 
    308308#endif 
     309!!bug RB : should be clean to use Agrif in coupled mode 
     310#if ! defined key_agrif 
    309311         CALL mpi_initialized ( mpi_was_called, code ) 
    310312         IF( code /= MPI_SUCCESS ) THEN 
     
    333335            WRITE(numout,*) '          without calling MPI_Init before ! ' 
    334336         ELSE 
     337#endif 
    335338            SELECT CASE ( c_mpi_send ) 
    336339            CASE ( 'S' )                ! Standard mpi send (blocking) 
     
    349352            END SELECT 
    350353 
     354#if ! defined key_agrif 
    351355            CALL mpi_comm_dup( mpi_comm_world, mpi_comm_opa, code) 
    352356            IF( code /= MPI_SUCCESS ) THEN 
     
    356360            ! 
    357361         ENDIF 
     362#endif 
    358363#if defined key_agrif 
    359364      ELSE 
     
    372377         END SELECT 
    373378      ENDIF 
    374 #endif 
    375  
    376       CALL mpi_comm_rank( mpi_comm_opa, rank, ierr ) 
    377       CALL mpi_comm_size( mpi_comm_opa, size, ierr ) 
     379 
     380      mpi_comm_opa = mpi_comm_world 
     381#endif 
     382        CALL mpi_comm_rank( mpi_comm_opa, rank, ierr ) 
     383        CALL mpi_comm_size( mpi_comm_opa, size, ierr ) 
    378384      mynode = rank 
    379385#else 
Note: See TracChangeset for help on using the changeset viewer.