Ignore:
Timestamp:
05/11/16 16:18:27 (6 years ago)
Author:
ymipsl
Message:

adding an MPI synchronisation when processing events in attached mode, avoiding some mismatch between differents events received by differents processes.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/context_server.cpp

    r597 r851  
    181181        else if (!CServer::eventScheduler || CServer::eventScheduler->queryEvent(currentTimeLine,hashId) ) 
    182182        { 
     183         // When using attached mode, synchronise the processes to avoid that differents event be scheduled by differents processes 
     184         // The best way to properly solve this problem will be to use the event scheduler also in attached mode 
     185         // for now just set up a MPI barrier 
     186         if (!CServer::eventScheduler) MPI_Barrier(intraComm) ;  
     187 
    183188         CTimer::get("Process events").resume(); 
    184189         dispatchEvent(*event); 
Note: See TracChangeset for help on using the changeset viewer.