Changeset 2274 for XIOS/dev/dev_ym/XIOS_COUPLING/src/server.cpp
- Timestamp:
- 12/09/21 12:28:20 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/server.cpp
r2266 r2274 21 21 #include <cstdio> 22 22 #include "workflow_graph.hpp" 23 #include "release_static_allocation.hpp" 24 23 25 24 26 … … 207 209 208 210 // Delete CContext 209 CObjectTemplate<CContext>::cleanStaticDataStructure();211 //CObjectTemplate<CContext>::cleanStaticDataStructure(); 210 212 } 211 213 … … 314 316 // MPI_Comm_free(&intraComm); 315 317 CXios::finalizeDaemonsManager(); 316 CContext::removeAllContexts() ; // free memory for related context 317 318 finalizeServersRessource(); 319 320 CContext::removeAllContexts() ; // free memory for related context 321 318 322 if (!is_MPI_Initialized) 319 323 { … … 325 329 report(0)<<"Performance report : Ratio : "<<CTimer::get("Process events").getCumulatedTime()/CTimer::get("XIOS server").getCumulatedTime()*100.<<"%"<<endl ; 326 330 report(100)<<CTimer::getAllCumulatedTime()<<endl ; 327 331 328 332 CWorkflowGraph::drawWorkFlowGraph_server(); 333 xios::releaseStaticAllocation() ; // free memory from static allocation 329 334 } 330 335 … … 420 425 serversRessource_ = new CServersRessource(serverComm) ; 421 426 } 427 428 void CServer::finalizeServersRessource(void) 429 { 430 delete serversRessource_; serversRessource_=nullptr ; 431 } 422 432 }
Note: See TracChangeset
for help on using the changeset viewer.