mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
Time: Fix logical error in re-evaluation of running state
Fix for a problem introduced by9a35ce69. See also commit9ed84852.
This commit is contained in:
@ -823,12 +823,14 @@ bool Foam::Time::run() const
|
||||
|
||||
bool Foam::Time::loop()
|
||||
{
|
||||
if (run())
|
||||
bool running = run();
|
||||
|
||||
if (running)
|
||||
{
|
||||
operator++();
|
||||
}
|
||||
|
||||
return running();
|
||||
return running;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user