Changeset 1920 for XIOS/trunk/src/node


Ignore:
Timestamp:
07/20/20 16:05:09 (4 years ago)
Author:
yushan
Message:

trunk : raise error if freq_op > output_freq

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/field.cpp

    r1876 r1920  
    20502050         freq_op.setValue(TimeStep); 
    20512051     } 
     2052     else 
     2053     { 
     2054       //if(file->output_freq.getValue() < freq_op.getValue()) 
     2055       if(freq_op.getValue() > file->output_freq.getValue() ) 
     2056       { 
     2057         ERROR("void CField::checkTimeAttributes(void)", 
     2058               << "output file has output_freq < freq_op" << std::endl 
     2059               << "field_id = "<< getId() << std::endl 
     2060               << "file_id = "<< file->getId() << std::endl 
     2061               << "output_freq = "<< file->output_freq.getValue() << std::endl 
     2062               << "freq_op = "<< freq_op.getValue() << std::endl) 
     2063       } 
     2064     } 
    20522065     if (freq_offset.isEmpty()) 
    20532066       freq_offset.setValue(isFieldRead ? NoneDu : (freq_op.getValue() - TimeStep)); 
Note: See TracChangeset for help on using the changeset viewer.