mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-12 16:26:23 +00:00
timeControl correct
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user