Changeset 997 for XIOS/trunk


Ignore:
Timestamp:
11/19/16 15:11:46 (7 years ago)
Author:
ymipsl
Message:

Add information about avalaible incoming flux from file when timeout occurs

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/filter/store_filter.cpp

    r932 r997  
    2323    CTimer timer("CStoreFilter::getPacket"); 
    2424    CConstDataPacketPtr packet; 
    25     const double timeout = 10; // 10 seconds timeout 
     25    const double timeout = 10 ; // 10 seconds timeout 
    2626 
    2727    do 
     
    3939 
    4040    if (!packet) 
     41    { 
     42      std::map<Time, CDataPacketPtr>::const_iterator it ; 
     43      info(0)<<"Impossible to get the packet with timestamp = " << timestamp<<std::endl<<"Available timestamp are : "<<std::endl ; 
     44      for(it=packets.begin();it!=packets.end();++it) info(0)<<it->first<<"  "; 
     45      info(0)<<std::endl ; 
    4146      ERROR("CConstDataPacketPtr CStoreFilter::getPacket(Time timestamp) const", 
    4247            << "Impossible to get the packet with timestamp = " << timestamp); 
    43  
     48    } 
    4449    return packet; 
    4550  } 
Note: See TracChangeset for help on using the changeset viewer.