Report patch name instead of index in debug
[foam-extend-3.2.git] / src / foam / include / createNamedPolyMesh.H
blobbee8601c743ee3547f154b9c800c9cb2f900e0e0
1 //
2 // createNamedPolyMesh.H
3 // ~~~~~~~~~~~~~~~~~~~~~
5     Foam::word regionName;
7     if (args.optionReadIfPresent("region", regionName))
8     {
9         Foam::Info
10             << "Create polyMesh " << regionName << " for time = "
11             << runTime.timeName() << Foam::nl << Foam::endl;
12     }
13     else
14     {
15         regionName = Foam::polyMesh::defaultRegion;
16         Foam::Info
17             << "Create polyMesh for time = "
18             << runTime.timeName() << Foam::nl << Foam::endl;
19     }
21     Foam::polyMesh mesh
22     (
23         Foam::IOobject
24         (
25             regionName,
26             runTime.timeName(),
27             runTime,
28             Foam::IOobject::MUST_READ
29         )
30     );