Skip to content
Snippets Groups Projects
Commit 678c6304 authored by Henry Weller's avatar Henry Weller Committed by mattijs
Browse files

fileOperation: Corrected findInstance. See also #974.

Patch contributed by Mattijs Janssens
parent 2ae4bf73
No related merge requests found
......@@ -784,7 +784,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;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment