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 13181 for NEMO/branches/2020/dev_r12512_HPC-04_mcastril_Mixed_Precision_implementation/src/OCE/LBC/lib_mpp.F90 – NEMO

Ignore:
Timestamp:
2020-06-30T15:57:34+02:00 (4 years ago)
Author:
orioltp
Message:

Several bugfixes added by Sam Hatfield (ECMWF).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r12512_HPC-04_mcastril_Mixed_Precision_implementation/src/OCE/LBC/lib_mpp.F90

    r13135 r13181  
    261261      !! 
    262262      INTEGER ::   iflag 
    263       !!---------------------------------------------------------------------- 
    264       ! 
    265 #if defined key_mpp_mpi 
    266       CALL mpi_isend( pmess, kbytes, mpi_double_precision, kdest , ktyp, mpi_comm_oce, md_req, iflag ) 
     263      INTEGER :: mpi_working_type 
     264      !!---------------------------------------------------------------------- 
     265      ! 
     266#if defined key_mpp_mpi 
     267      IF (wp == dp) THEN 
     268         mpi_working_type = mpi_double_precision 
     269      ELSE 
     270         mpi_working_type = mpi_real 
     271      END IF 
     272      CALL mpi_isend( pmess, kbytes, mpi_working_type, kdest , ktyp, mpi_comm_oce, md_req, iflag ) 
    267273#endif 
    268274      ! 
     
    331337      INTEGER :: iflag 
    332338      INTEGER :: use_source 
     339      INTEGER :: mpi_working_type 
    333340      !!---------------------------------------------------------------------- 
    334341      ! 
     
    339346      IF( PRESENT(ksource) )   use_source = ksource 
    340347      ! 
    341       CALL mpi_recv( pmess, kbytes, mpi_double_precision, use_source, ktyp, mpi_comm_oce, istatus, iflag ) 
     348      IF (wp == dp) THEN 
     349         mpi_working_type = mpi_double_precision 
     350      ELSE 
     351         mpi_working_type = mpi_real 
     352      END IF 
     353      CALL mpi_recv( pmess, kbytes, mpi_working_type, use_source, ktyp, mpi_comm_oce, istatus, iflag ) 
    342354#endif 
    343355      ! 
Note: See TracChangeset for help on using the changeset viewer.