Changeset 1028 for XIOS/trunk/src/node/context.cpp
- Timestamp:
- 01/12/17 14:37:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/context.cpp
r1015 r1028 566 566 { 567 567 const std::vector<CFile*> allFiles = CFile::getAll(); 568 const CDate& initDate = calendar->getInitDate(); 568 569 569 570 for (unsigned int i = 0; i < allFiles.size(); i++) … … 572 573 if (allFiles[i]->enabled.getValue()) // Si l'attribut 'enabled' est fixé à vrai. 573 574 { 574 if ( allFiles[i]->output_freq.getValue() < this->getCalendar()->getTimeStep())575 if ((initDate + allFiles[i]->output_freq.getValue()) < (initDate + this->getCalendar()->getTimeStep())) 575 576 { 576 577 error(0)<<"WARNING: void CContext::findEnabledFiles()"<<endl 577 << "Output frequency in file \""<<allFiles[i]->get Id()578 <<"\" is greaterthan the time step. File will not be written."<<endl;578 << "Output frequency in file \""<<allFiles[i]->getFileOutputName() 579 <<"\" is less than the time step. File will not be written."<<endl; 579 580 } 580 581 else … … 584 585 else 585 586 { 586 if ( allFiles[i]->output_freq.getValue() < this->getCalendar()->getTimeStep())587 if ( (initDate + allFiles[i]->output_freq.getValue()) < (initDate + this->getCalendar()->getTimeStep())) 587 588 { 588 589 error(0)<<"WARNING: void CContext::findEnabledFiles()"<<endl 589 << "Output frequency in file \""<<allFiles[i]->get Id()590 <<"\" is greaterthan the time step. File will not be written."<<endl;590 << "Output frequency in file \""<<allFiles[i]->getFileOutputName() 591 <<"\" is less than the time step. File will not be written."<<endl; 591 592 } 592 593 else
Note: See TracChangeset
for help on using the changeset viewer.