mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
fileOperation: Corrected findInstance
Patch contributed by Mattijs Janssens
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user