Changeset 2330


Ignore:
Timestamp:
05/13/22 10:51:23 (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/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/cxios.cpp

    r1704 r2330  
    4343  double CXios::recvFieldTimeout = 300.0; 
    4444  bool CXios::checkEventSync=false ; 
     45  bool CXios::checkSumRecv=false ; 
     46  bool CXios::checkSumSend=false ; 
    4547  
    4648  //! Parse configuration file and create some objects from it 
     
    9395    checkEventSync = getin<bool>("check_event_sync", checkEventSync); 
    9496 
     97    checkSumSend = getin<bool>("checksum_send_fields", false); 
     98    checkSumRecv = getin<bool>("checksum_recv_fields", false); 
     99  
    95100    globalComm=MPI_COMM_WORLD ; 
    96101  } 
  • XIOS/trunk/src/cxios.hpp

    r1639 r2330  
    5757     static bool checkEventSync; //!< For debuuging, check if event are coherent and synchrone on client side 
    5858 
     59     static bool checkSumSend; //!< For debugging, compute a checksum of fields sent by the model to the XIOS client (very expensive !) 
     60     static bool checkSumRecv; //!< For debugging, compute a checksum of fields received by the model through the XIOS client 
     61 
    5962    public: 
    6063     //! Setting xios to use server mode 
  • XIOS/trunk/src/node/field_impl.hpp

    r2319 r2330  
    2323      if (check_if_active.isEmpty() || (!check_if_active.isEmpty() && (!check_if_active) || isActive(true))) 
    2424      { 
    25         if ( info.getLevel()>100  ) 
     25        if ( CXios::checkSumSend  ) 
    2626        { 
    2727          const double* array = _data.dataFirst(); 
     
    4848    { 
    4949      CDataPacket::StatusCode status = storeFilter->getData(CContext::getCurrent()->getCalendar()->getCurrentDate(), _data); 
    50       if ( info.getLevel()>100  ) 
     50      if ( CXios::checkSumRecv  ) 
    5151      { 
    5252        const double* array = _data.dataFirst(); 
Note: See TracChangeset for help on using the changeset viewer.