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 12675 for NEMO/branches/UKMO/NEMO_4.0.1_icesheet_and_river_coupling/src/OCE/SBC/cpl_oasis3.F90 – NEMO

Ignore:
Timestamp:
2020-04-03T18:00:43+02:00 (4 years ago)
Author:
dancopsey
Message:

Fix compile errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/NEMO_4.0.1_icesheet_and_river_coupling/src/OCE/SBC/cpl_oasis3.F90

    r12580 r12675  
    3333   USE in_out_manager               ! I/O manager 
    3434   USE lbclnk                       ! ocean lateral boundary conditions (or mpp link) 
     35   USE lib_mpp 
    3536 
    3637   IMPLICIT NONE 
     
    5253   PUBLIC   cpl_finalize 
    5354 
     55#if defined key_mpp_mpi 
     56   INCLUDE 'mpif.h' 
     57#endif 
     58 
     59   INTEGER, PARAMETER         ::   localRoot  = 0 
    5460   INTEGER, PUBLIC            ::   OASIS_Rcv  = 1    !: return code if received field 
    5561   INTEGER, PUBLIC            ::   OASIS_idle = 0    !: return code if nothing done by oasis 
     
    115121      CHARACTER(len = *), INTENT(in   ) ::   cd_modname   ! model name as set in namcouple file 
    116122      INTEGER           , INTENT(  out) ::   kl_comm      ! local communicator of the model 
     123      INTEGER                           ::   error 
    117124      !!-------------------------------------------------------------------- 
    118125 
     
    627634                     WRITE(numout,*) '     - Start of data is ', pdata(1:number_to_print) 
    628635                     WRITE(numout,*) '****************' 
    629                      IF(lflush) CALL flush(numout) 
    630636                  ENDIF 
    631637                   
     
    635641             
    636642       ENDDO 
    637         
     643 
     644#if defined key_mpp_mpi 
    638645       ! Set the precision that we want to broadcast using MPI_BCAST 
    639646       SELECT CASE( wp ) 
     
    651658       ! to deal with that w/o NEMO adopting a UM-style test mechanism 
    652659       ! to determine active put/get timesteps.  
    653        CALL mpi_bcast( pdata, nitems, MPI_WORKING_PRECISION, localRoot, mpi_comm_opa, ierr ) 
     660       CALL mpi_bcast( pdata, nitems, MPI_WORKING_PRECISION, localRoot, mpi_comm_oce, ierr ) 
     661#else 
     662       CALL oasis_abort( ncomp_id, "cpl_rcv_1d", "Unable to use mpi_bcast without key_mpp_mpi present. Please add key_mpp_mpi to your list of NEMO keys." ) 
     663#endif 
    654664 
    655665      ! 
Note: See TracChangeset for help on using the changeset viewer.