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 14367 for NEMO/branches/2021/dev_r14312_MPI_Interface/src/OCE/LBC/lbclnk.F90 – NEMO

Ignore:
Timestamp:
2021-02-02T08:51:42+01:00 (3 years ago)
Author:
smasson
Message:

dev_r14312_MPI_Interface: keep send/recv buffers in memory if smaller than jpi*jpj, #2598

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2021/dev_r14312_MPI_Interface/src/OCE/LBC/lbclnk.F90

    r14366 r14367  
    5050   PUBLIC   lbc_lnk_icb        ! iceberg lateral boundary conditions 
    5151 
     52   REAL(dp), DIMENSION(:), ALLOCATABLE ::   buffsnd_dp, buffrcv_dp   ! MPI send/recv buffers 
     53   REAL(sp), DIMENSION(:), ALLOCATABLE ::   buffsnd_sp, buffrcv_sp   !  
     54   INTEGER,  DIMENSION(8)              ::   nreq_p2p                 ! request id for MPI_Isend in point-2-point communication 
     55    
    5256   !! * Substitutions 
    5357   !!#  include "do_loop_substitute.h90" 
     
    126130#define PRECISION sp 
    127131#  define MPI_TYPE MPI_REAL 
     132#  define BUFFSND buffsnd_sp 
     133#  define BUFFRCV buffrcv_sp 
    128134#  include "lbc_lnk_pt2pt_generic.h90" 
    129135#  include "lbc_lnk_neicoll_generic.h90" 
    130136#  undef MPI_TYPE 
     137#  undef BUFFSND 
     138#  undef BUFFRCV 
    131139#undef PRECISION 
    132140   !! 
     
    135143#define PRECISION dp 
    136144#  define MPI_TYPE MPI_DOUBLE_PRECISION 
     145#  define BUFFSND buffsnd_dp 
     146#  define BUFFRCV buffrcv_dp 
    137147#  include "lbc_lnk_pt2pt_generic.h90" 
    138148#  include "lbc_lnk_neicoll_generic.h90" 
    139149#  undef MPI_TYPE 
     150#  undef BUFFSND 
     151#  undef BUFFRCV 
    140152#undef PRECISION 
    141153 
Note: See TracChangeset for help on using the changeset viewer.