Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / src / foam / include / createNamedMesh.H
blobf61ec2bd6e8836d39d895b4a0604a69e26e2c4cb
1 //
2 // createNamedMesh.H
3 // ~~~~~~~~~~~~~~~~~
5     Foam::word regionName;
7     if (args.optionReadIfPresent("region", regionName))
8     {
9         Foam::Info
10             << "Create mesh " << regionName << " for time = "
11             << runTime.timeName() << Foam::nl << Foam::endl;
12     }
13     else
14     {
15         regionName = Foam::fvMesh::defaultRegion;
16         Foam::Info
17             << "Create mesh for time = "
18             << runTime.timeName() << Foam::nl << Foam::endl;
19     }
21     Foam::fvMesh mesh
22     (
23         Foam::IOobject
24         (
25             regionName,
26             runTime.timeName(),
27             runTime,
28             Foam::IOobject::MUST_READ
29         )
30     );