Ignore:
Timestamp:
11/19/18 15:52:54 (5 years ago)
Author:
yushan
Message:

branch_openmp merged with trunk r1597

File:
1 edited

Legend:

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

    r1574 r1601  
    343343    while (currentDate >= lastDataRequestedFromServer) 
    344344    { 
    345       info(20) << "currentDate : " << currentDate << endl ; 
    346       info(20) << "lastDataRequestedFromServer : " << lastDataRequestedFromServer << endl ; 
    347       info(20) << "file->output_freq.getValue() : " << file->output_freq.getValue() << endl ; 
    348       info(20) << "lastDataRequestedFromServer + file->output_freq.getValue() : " << lastDataRequestedFromServer + file->output_freq << endl ; 
     345      #pragma omp critical (_output) 
     346      { 
     347        info(20) << "currentDate : " << currentDate << endl ; 
     348        info(20) << "lastDataRequestedFromServer : " << lastDataRequestedFromServer << endl ; 
     349        info(20) << "file->output_freq.getValue() : " << file->output_freq.getValue() << endl ; 
     350        info(20) << "lastDataRequestedFromServer + file->output_freq.getValue() : " << lastDataRequestedFromServer + file->output_freq << endl ; 
     351      } 
    349352 
    350353      dataRequested |= sendReadDataRequest(lastDataRequestedFromServer + file->output_freq); 
     
    502505    if (!nstepMaxRead) 
    503506    { 
    504        MPI_Allreduce(MPI_IN_PLACE, &nstepMax, 1, MPI_INT, MPI_MAX, context->server->intraComm); 
     507       MPI_Allreduce(&nstepMax, &nstepMax, 1, MPI_INT, MPI_MAX, context->server->intraComm); 
    505508       nstepMaxRead = true; 
    506509    } 
     
    919922     { 
    920923        areAllReferenceSolved = true; 
    921         
     924 
    922925        if (context->hasClient && !context->hasServer) 
    923926        { 
Note: See TracChangeset for help on using the changeset viewer.