Changeset 1240


Ignore:
Timestamp:
08/09/17 10:39:19 (7 years ago)
Author:
ymipsl
Message:

Avoid buffer Aliasing with MPI_Allreduce

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/node/field.cpp

    r1239 r1240  
    481481    if (!nstepMaxRead) 
    482482    { 
    483        MPI_Allreduce(&nstepMax, &nstepMax, 1, MPI_INT, MPI_MAX, context->server->intraComm); 
     483       MPI_Allreduce(MPI_IN_PLACE, &nstepMax, 1, MPI_INT, MPI_MAX, context->server->intraComm); 
    484484       nstepMaxRead = true; 
    485485    } 
Note: See TracChangeset for help on using the changeset viewer.