Changeset 2329


Ignore:
Timestamp:
05/13/22 10:39:51 (2 years ago)
Author:
jderouillat
Message:

Added dedicated options to manage send/recv checksum operations, this new xios parameters are respectively called checksum_send_fields/checksum_recv_fields (set to false by default)

Location:
XIOS/dev/dev_ym/XIOS_COUPLING/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/cxios.cpp

    r2310 r2329  
    5151  double CXios::recvFieldTimeout = 300.0; 
    5252  bool CXios::checkEventSync=false ; 
     53  bool CXios::checkSumRecv=false ; 
     54  bool CXios::checkSumSend=false ; 
    5355 
    5456  CDaemonsManager*    CXios::daemonsManager_=nullptr ; 
     
    109111 
    110112    checkEventSync = getin<bool>("check_event_sync", checkEventSync); 
     113     
     114    checkSumSend = getin<bool>("checksum_send_fields", false); 
     115    checkSumRecv = getin<bool>("checksum_recv_fields", false); 
    111116 
    112117    globalComm=MPI_COMM_WORLD ; 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/cxios.hpp

    r2310 r2329  
    6464     static double recvFieldTimeout; //!< Time to wait for data before issuing an error when receiving a field 
    6565     static bool checkEventSync; //!< For debuuging, check if event are coherent and synchrone on client side 
    66       
     66 
     67     static bool checkSumSend; //!< For debugging, compute a checksum of fields sent by the model to the XIOS client (very expensive !) 
     68     static bool checkSumRecv; //!< For debugging, compute a checksum of fields received by the model through the XIOS client 
     69 
    6770     static const string defaultPoolId ; 
    6871     static const string defaultServerId ; 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/field_impl.hpp

    r2318 r2329  
    2121      if (check_if_active.isEmpty() || (!check_if_active.isEmpty() && (!check_if_active) || isActive(true))) 
    2222      { 
    23         if ( info.getLevel()>100 ) 
     23        if ( CXios::checkSumSend ) 
    2424        { 
    2525          const double* array = _data.dataFirst(); 
     
    4444    { 
    4545      CDataPacket::StatusCode status = clientToModelStoreFilter_->getData(CContext::getCurrent()->getCalendar()->getCurrentDate(), _data); 
    46       if ( info.getLevel()>100 ) 
     46      if ( CXios::checkSumRecv ) 
    4747      { 
    4848        const double* array = _data.dataFirst(); 
Note: See TracChangeset for help on using the changeset viewer.