Changeset 2535


Ignore:
Timestamp:
07/21/23 14:42:15 (10 months ago)
Author:
jderouillat
Message:

Backport [2448,2503,2516], ocean component in generic_testcase, memory_report option and nvertex name

Location:
XIOS3/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/generic_testcase/context_oce.xml

    r2392 r2535  
    315315 <file_definition  type="one_file" > 
    316316     
    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"> 
    320318      <field field_ref="pressure"  />  
    321319      <field field_ref="field3D_resend" />  
     
    325323      <field field_ref="field_X"    enabled="true"/> 
    326324      <field field_ref="field_Y"    enabled="true"/> 
    327       <field field_ref="field_XY "  enabled="true"/> 
     325      <field field_ref="field_XY"   enabled="true"/> 
    328326      <field field_ref="field_Z"    enabled="true"/> 
    329327      <field field_ref="field_XYZ"  enabled="true"/> 
     
    332330    </file> 
    333331 
    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"> 
    335333       <field field_ref="other_field3D"   enabled="true"/> 
    336334       <field field_ref="other_field2D"   enabled="true"/>  
     
    344342    </file> 
    345343 
    346     <file id="atm_output_W" output_freq="1ts" enabled="false"> 
     344    <file id="oce_output_W" output_freq="1ts" enabled="false"> 
    347345       <field field_ref="field3D_W"  enabled="true"/> 
    348346       <field field_ref="field2D_W"  enabled="true"/>  
  • XIOS3/trunk/src/client.cpp

    r2523 r2535  
    536536      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 ; 
    537537      report(100)<<CTimer::getAllCumulatedTime()<<endl ; 
    538       report(100)<<CMemChecker::getAllCumulatedMem()<<endl ; 
     538      if (CXios::reportMemory) 
     539      { 
     540        report(100)<<CMemChecker::getAllCumulatedMem()<<endl ; 
     541      } 
    539542      CWorkflowGraph::drawWorkFlowGraph_client(); 
    540543 
  • XIOS3/trunk/src/cxios.cpp

    r2438 r2535  
    5858  bool CXios::checkSumSend=false ; 
    5959  bool CXios::logMemory=false ; 
     60  bool CXios::reportMemory=true ; 
    6061 
    6162  CDaemonsManager*    CXios::daemonsManager_=nullptr ; 
     
    129130    checkSumSend = getin<bool>("checksum_send_fields", false); 
    130131    checkSumRecv = getin<bool>("checksum_recv_fields", false); 
    131      
     132 
    132133    logMemory = getin<bool>("log_memory", false); 
     134    reportMemory = getin<bool>("memory_report", true); 
    133135 
    134136    globalComm=MPI_COMM_WORLD ; 
  • XIOS3/trunk/src/cxios.hpp

    r2420 r2535  
    6868     static bool checkSumRecv; //!< For debugging, compute a checksum of fields received by the model through the XIOS client 
    6969 
    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 
    7273     static const string defaultPoolId ; 
    7374     static const string defaultServerId ; 
  • XIOS3/trunk/src/io/nc4_data_output.cpp

    r2529 r2535  
    865865         StdString dimXid = cellName+appendDomid; 
    866866         StdString dimVertId; 
    867          if (domain->nvertex_name.isEmpty()) dimVertId = "nvertex"; 
     867         if (domain->nvertex_name.isEmpty()) dimVertId = "nvertex"+appendDomid;  
    868868         else dimVertId = domain->nvertex_name; 
    869869 
  • XIOS3/trunk/src/mem_checker.cpp

    r2426 r2535  
    4444  { 
    4545    std::vector<double> memories(0); 
     46    if ( !CXios::reportMemory ) return memories ; 
    4647    memories.clear(); 
    4748     
  • XIOS3/trunk/src/server.cpp

    r2523 r2535  
    548548      report(0)<<"Performance report : Ratio : "<<CTimer::get("Process events").getCumulatedTime()/CTimer::get("XIOS server").getCumulatedTime()*100.<<"%"<<endl  ; 
    549549      report(100)<<CTimer::getAllCumulatedTime()<<endl ; 
    550       report(100)<<CMemChecker::getAllCumulatedMem()<<endl ; 
     550      if (CXios::reportMemory) 
     551      { 
     552        report(100)<<CMemChecker::getAllCumulatedMem()<<endl ; 
     553      } 
    551554       
    552555      CWorkflowGraph::drawWorkFlowGraph_server(); 
Note: See TracChangeset for help on using the changeset viewer.