Ignore:
Timestamp:
06/01/23 10:58:08 (13 months ago)
Author:
ymipsl
Message:

Merging XIOS3_ATTACHED branch into XIOS3 trunk.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/src/transport/legacy_context_server.cpp

    r2458 r2507  
    323323        { 
    324324          eventScheduler_->registerEvent(currentTimeLine,hashId); 
     325          info(100)<<"Context id "<<context->getId()<<"Schedule event : "<< currentTimeLine <<"  "<<hashId<<endl ; 
    325326          scheduled=true; 
    326327        } 
     
    342343            if (!flag) return ; 
    343344            eventScheduled_=false ; 
     345          } 
     346           
     347          if (CXios::checkEventSync) 
     348          { 
     349            int typeId, classId, typeId_in, classId_in; 
     350            long long timeLine_out; 
     351            long long timeLine_in( currentTimeLine ); 
     352            typeId_in=event->type ; 
     353            classId_in=event->classId ; 
     354   //        MPI_Allreduce(&timeLine,&timeLine_out, 1, MPI_UINT64_T, MPI_SUM, intraComm) ; // MPI_UINT64_T standardized by MPI 3 
     355            MPI_Allreduce(&timeLine_in,&timeLine_out, 1, MPI_LONG_LONG_INT, MPI_SUM, intraComm) ;  
     356            MPI_Allreduce(&typeId_in,&typeId, 1, MPI_INT, MPI_SUM, intraComm) ; 
     357            MPI_Allreduce(&classId_in,&classId, 1, MPI_INT, MPI_SUM, intraComm) ; 
     358            if (typeId/intraCommSize!=event->type || classId/intraCommSize!=event->classId || timeLine_out/intraCommSize!=currentTimeLine) 
     359            { 
     360               ERROR("void CLegacyContextClient::sendEvent(CEventClient& event)", 
     361                  << "Event are not coherent between client for timeline = "<<currentTimeLine); 
     362            } 
    344363          } 
    345364 
Note: See TracChangeset for help on using the changeset viewer.