fileOperation: Corrected findInstance

Patch contributed by Mattijs Janssens
This commit is contained in:
Henry Weller
2018-07-06 11:32:45 +01:00
parent f8cc1e040c
commit 867bb83891

View File

@ -775,7 +775,11 @@ Foam::IOobject Foam::fileOperation::findInstance
for (; instanceI >= 0; --instanceI)
{
// Shortcut: if actual directory is the timeName we've already tested it
if (ts[instanceI].name() == startIO.instance())
if
(
ts[instanceI].name() == startIO.instance()
&& ts[instanceI].name() != stopInstance
)
{
continue;
}