Ignore:
Timestamp:
05/18/17 19:27:26 (3 years ago)
Author:
oabramkina
Message:

Fixing a bug in context finalization. Now context finalization is done in two stages.
Tested on Cure with test_regular and test_xios2_cmip6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_olga/src/context_server.cpp

    r1130 r1139  
    225225    { 
    226226      finished=true; 
    227 //      info(20)<<"Server Side context <"<<context->getId()<<"> finalized"<<endl;   // moved to CContext::finalize() 
    228227      std::map<int, StdSize>::const_iterator itbMap = mapBufferSize_.begin(), 
    229228                           iteMap = mapBufferSize_.end(), itMap; 
     
    237236      context->finalize(); 
    238237      report(0)<< " Memory report : Context <"<<ctxId<<"> : server side : total memory used for buffer "<<totalBuf<<" bytes"<<endl; 
     238    } 
     239    else if (event.classId==CContext::GetType() && event.type==CContext::EVENT_ID_CONTEXT_POST_FINALIZE) 
     240    { 
     241      info(20)<<"Server side context <"<<context->getId()<<"> finalized."<<endl; 
     242      context->postFinalize(); 
    239243    } 
    240244    else if (event.classId==CContext::GetType()) CContext::dispatchEvent(event); 
Note: See TracChangeset for help on using the changeset viewer.