timeControl correct
This commit is contained in:
parent
80647e5103
commit
f1052acc39
|
@ -137,10 +137,13 @@ void pFlow::timeControl::checkForOutputToFile()
|
|||
{
|
||||
lastSaved_ = currentTime_;
|
||||
save = true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
outputToFile_ = save;
|
||||
|
||||
|
||||
}
|
||||
|
||||
bool pFlow::timeControl::timersReportTime()const
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue