mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: sets are now searched for.
Some tools now output sets at the pointsInstance (if relating to geometry), some at the facesInstance (if relating to topology). So when loading them we now search for them from current time down to facesInstance. They cannot be beyond facesInstance. Adapted Time::findInstance to take optional limiting instance. Adapted topoSet to use this. Adapted all uses of IOobjectList on sets to do the same.
This commit is contained in:
@ -400,25 +400,30 @@ void Foam::vtkPV3Foam::updateInfoSets
|
||||
Info<< "<beg> Foam::vtkPV3Foam::updateInfoSets" << endl;
|
||||
}
|
||||
|
||||
// Add names of sets
|
||||
IOobjectList objects
|
||||
// Add names of sets. Search for last time directory with a sets
|
||||
// subdirectory. Take care not to search beyond the last mesh.
|
||||
|
||||
word facesInstance = dbPtr_().findInstance
|
||||
(
|
||||
dbPtr_(),
|
||||
dbPtr_().findInstance(meshDir_, "faces", IOobject::READ_IF_PRESENT),
|
||||
meshDir_/"sets"
|
||||
meshDir_,
|
||||
"faces",
|
||||
IOobject::READ_IF_PRESENT
|
||||
);
|
||||
|
||||
word setsInstance = dbPtr_().findInstance
|
||||
(
|
||||
meshDir_/"sets",
|
||||
word::null,
|
||||
IOobject::READ_IF_PRESENT,
|
||||
facesInstance
|
||||
);
|
||||
|
||||
IOobjectList objects(dbPtr_(), setsInstance, meshDir_/"sets");
|
||||
|
||||
if (debug)
|
||||
{
|
||||
Info<< " Foam::vtkPV3Foam::updateInfoSets read "
|
||||
<< objects.names() << " from "
|
||||
<< dbPtr_().findInstance
|
||||
(
|
||||
meshDir_,
|
||||
"faces",
|
||||
IOobject::READ_IF_PRESENT
|
||||
)
|
||||
<< endl;
|
||||
<< objects.names() << " from " << setsInstance << endl;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user