Ignore:
Timestamp:
07/20/21 11:02:43 (3 years ago)
Author:
jderouillat
Message:

Fixes for some more strict compilers (gcc 8.3 at TGCC)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/context_client.cpp

    r2176 r2189  
    137137      if (CXios::checkEventSync) 
    138138      { 
    139         int typeId, classId, typeId_in, classId_in, timeLine_out; 
     139        int typeId, classId, typeId_in, classId_in; 
     140        long long timeLine_out; 
     141        long long timeLine_in( timeLine ); 
    140142        typeId_in=event.getTypeId() ; 
    141143        classId_in=event.getClassId() ; 
    142144//        MPI_Allreduce(&timeLine,&timeLine_out, 1, MPI_UINT64_T, MPI_SUM, intraComm) ; // MPI_UINT64_T standardized by MPI 3 
    143         MPI_Allreduce(&timeLine,&timeLine_out, 1, MPI_LONG_LONG_INT, MPI_SUM, intraComm) ;  
     145        MPI_Allreduce(&timeLine_in,&timeLine_out, 1, MPI_LONG_LONG_INT, MPI_SUM, intraComm) ;  
    144146        MPI_Allreduce(&typeId_in,&typeId, 1, MPI_INT, MPI_SUM, intraComm) ; 
    145147        MPI_Allreduce(&classId_in,&classId, 1, MPI_INT, MPI_SUM, intraComm) ; 
Note: See TracChangeset for help on using the changeset viewer.