Ignore:
Timestamp:
01/13/17 11:44:00 (7 years ago)
Author:
rlacroix
Message:

Make the timeout for xios_recv_field configurable.

The new option "recv_field_timeout" can now be used to set the timeout expressed in seconds. Default value is still 10s.

File:
1 edited

Legend:

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

    r956 r1029  
    3030  bool CXios::isOptPerformance = true; 
    3131  CRegistry* CXios::globalRegistry = 0; 
     32  double CXios::recvFieldTimeout = 10.0; 
    3233 
    3334  //! Parse configuration file and create some objects from it 
     
    6364    bufferSizeFactor = getin<double>("buffer_size_factor", defaultBufferSizeFactor); 
    6465    minBufferSize = getin<int>("min_buffer_size", 1024 * sizeof(double)); 
     66    recvFieldTimeout = getin<double>("recv_field_timeout", 10.0); 
     67    if (recvFieldTimeout < 0.0) 
     68      ERROR("CXios::parseXiosConfig()", "recv_field_timeout cannot be negative."); 
    6569 
    6670    globalComm=MPI_COMM_WORLD ; 
Note: See TracChangeset for help on using the changeset viewer.