timeControl correct

This commit is contained in:
Hamidreza Norouzi 2023-03-16 11:52:37 -07:00
parent 80647e5103
commit f1052acc39
2 changed files with 7 additions and 6 deletions

View File

@ -138,9 +138,12 @@ void pFlow::timeControl::checkForOutputToFile()
lastSaved_ = currentTime_;
save = true;
}
}
outputToFile_ = save;
}
bool pFlow::timeControl::timersReportTime()const

View File

@ -235,11 +235,9 @@ pFlow::systemControl::systemControl(
bool pFlow::systemControl::operator ++(int)
{
// skip writing to file for the first iteration
//output<< "time()++"<<endl;
auto finished = time()++;
auto toContinue = time()++;
if(!finished)
if(toContinue)
{
writeToFileTimer_.start();
//if(time().currentIter() != 0 )
@ -273,7 +271,7 @@ bool pFlow::systemControl::operator ++(int)
timers_.write(output, true);
}
return finished;
return toContinue;
}