mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
setsToZones: Add support for multi-region cases
Patch contributed by Bruno Santos Resolves bug-report https://bugs.openfoam.org/view.php?id=2437
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -84,10 +84,12 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
#include "createNamedPolyMesh.H"
|
#include "createNamedPolyMesh.H"
|
||||||
|
|
||||||
|
const fileName setsSubPath(mesh.dbDir()/polyMesh::meshSubDir/"sets");
|
||||||
|
|
||||||
// Search for list of objects for the time of the mesh
|
// Search for list of objects for the time of the mesh
|
||||||
word setsInstance = runTime.findInstance
|
word setsInstance = runTime.findInstance
|
||||||
(
|
(
|
||||||
polyMesh::meshSubDir/"sets",
|
setsSubPath,
|
||||||
word::null,
|
word::null,
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
mesh.facesInstance()
|
mesh.facesInstance()
|
||||||
@ -95,7 +97,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
IOobjectList objects(mesh, setsInstance, polyMesh::meshSubDir/"sets");
|
IOobjectList objects(mesh, setsInstance, polyMesh::meshSubDir/"sets");
|
||||||
|
|
||||||
Info<< "Searched : " << setsInstance/polyMesh::meshSubDir/"sets"
|
Info<< "Searched : " << setsInstance/setsSubPath
|
||||||
<< nl
|
<< nl
|
||||||
<< "Found : " << objects.names() << nl
|
<< "Found : " << objects.names() << nl
|
||||||
<< endl;
|
<< endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user