Changeset 2535
- Timestamp:
- 07/21/23 14:42:15 (18 months ago)
- Location:
- XIOS3/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/generic_testcase/context_oce.xml
r2392 r2535 315 315 <file_definition type="one_file" > 316 316 317 <file id="atm_output" output_freq="1ts" type="one_file" enabled="true"> 318 <field field_ref="field3D" /> 319 <field field_ref="field2D" /> 317 <file id="oce_output" output_freq="1ts" type="one_file" enabled="true"> 320 318 <field field_ref="pressure" /> 321 319 <field field_ref="field3D_resend" /> … … 325 323 <field field_ref="field_X" enabled="true"/> 326 324 <field field_ref="field_Y" enabled="true"/> 327 <field field_ref="field_XY "enabled="true"/>325 <field field_ref="field_XY" enabled="true"/> 328 326 <field field_ref="field_Z" enabled="true"/> 329 327 <field field_ref="field_XYZ" enabled="true"/> … … 332 330 </file> 333 331 334 <file id=" atm_output_other" output_freq="1ts" type="one_file" enabled="false">332 <file id="oce_output_other" output_freq="1ts" type="one_file" enabled="false"> 335 333 <field field_ref="other_field3D" enabled="true"/> 336 334 <field field_ref="other_field2D" enabled="true"/> … … 344 342 </file> 345 343 346 <file id=" atm_output_W" output_freq="1ts" enabled="false">344 <file id="oce_output_W" output_freq="1ts" enabled="false"> 347 345 <field field_ref="field3D_W" enabled="true"/> 348 346 <field field_ref="field2D_W" enabled="true"/> -
XIOS3/trunk/src/client.cpp
r2523 r2535 536 536 report(0)<< " Memory report : increasing it by a factor will increase performance, depending of the volume of data wrote in file at each time step of the file"<<endl ; 537 537 report(100)<<CTimer::getAllCumulatedTime()<<endl ; 538 report(100)<<CMemChecker::getAllCumulatedMem()<<endl ; 538 if (CXios::reportMemory) 539 { 540 report(100)<<CMemChecker::getAllCumulatedMem()<<endl ; 541 } 539 542 CWorkflowGraph::drawWorkFlowGraph_client(); 540 543 -
XIOS3/trunk/src/cxios.cpp
r2438 r2535 58 58 bool CXios::checkSumSend=false ; 59 59 bool CXios::logMemory=false ; 60 bool CXios::reportMemory=true ; 60 61 61 62 CDaemonsManager* CXios::daemonsManager_=nullptr ; … … 129 130 checkSumSend = getin<bool>("checksum_send_fields", false); 130 131 checkSumRecv = getin<bool>("checksum_recv_fields", false); 131 132 132 133 logMemory = getin<bool>("log_memory", false); 134 reportMemory = getin<bool>("memory_report", true); 133 135 134 136 globalComm=MPI_COMM_WORLD ; -
XIOS3/trunk/src/cxios.hpp
r2420 r2535 68 68 static bool checkSumRecv; //!< For debugging, compute a checksum of fields received by the model through the XIOS client 69 69 70 static bool logMemory; //!< Activate memory monitoring for all XIOS process 71 70 static bool logMemory; //!< Activate memory monitoring for all XIOS process (generate CSV file for https://forge.ipsl.jussieu.fr/ioserver/chrome/site/XIOS_TOOLS/xios_memory.html) 71 static bool reportMemory; //!< Activate memory reporting for all XIOS process (report in log files) 72 72 73 static const string defaultPoolId ; 73 74 static const string defaultServerId ; -
XIOS3/trunk/src/io/nc4_data_output.cpp
r2529 r2535 865 865 StdString dimXid = cellName+appendDomid; 866 866 StdString dimVertId; 867 if (domain->nvertex_name.isEmpty()) dimVertId = "nvertex" ;867 if (domain->nvertex_name.isEmpty()) dimVertId = "nvertex"+appendDomid; 868 868 else dimVertId = domain->nvertex_name; 869 869 -
XIOS3/trunk/src/mem_checker.cpp
r2426 r2535 44 44 { 45 45 std::vector<double> memories(0); 46 if ( !CXios::reportMemory ) return memories ; 46 47 memories.clear(); 47 48 -
XIOS3/trunk/src/server.cpp
r2523 r2535 548 548 report(0)<<"Performance report : Ratio : "<<CTimer::get("Process events").getCumulatedTime()/CTimer::get("XIOS server").getCumulatedTime()*100.<<"%"<<endl ; 549 549 report(100)<<CTimer::getAllCumulatedTime()<<endl ; 550 report(100)<<CMemChecker::getAllCumulatedMem()<<endl ; 550 if (CXios::reportMemory) 551 { 552 report(100)<<CMemChecker::getAllCumulatedMem()<<endl ; 553 } 551 554 552 555 CWorkflowGraph::drawWorkFlowGraph_server();
Note: See TracChangeset
for help on using the changeset viewer.