Navigation Menu

Skip to content

Commit

Permalink
ENH: dynamicFvMesh: added region support
Browse files Browse the repository at this point in the history
  • Loading branch information
mattijs committed Sep 20, 2012
1 parent 12fd7d7 commit ba860a6
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/dynamicFvMesh/include/createNamedDynamicFvMesh.H
@@ -0,0 +1,32 @@
Foam::word regionName;

if (args.optionReadIfPresent("region", regionName))
{
Foam::Info
<< "Create mesh " << regionName << " for time = "
<< runTime.timeName() << Foam::nl << Foam::endl;
}
else
{
regionName = Foam::fvMesh::defaultRegion;
Foam::Info
<< "Create mesh for time = "
<< runTime.timeName() << Foam::nl << Foam::endl;
}


autoPtr<dynamicFvMesh> meshPtr
(
dynamicFvMesh::New
(
IOobject
(
regionName,
runTime.timeName(),
runTime,
IOobject::MUST_READ
)
)
);

dynamicFvMesh& mesh = meshPtr();

0 comments on commit ba860a6

Please sign in to comment.