46const word
dictName(
"faMeshDefinition");
52 const bool exitOnFailure = (!
args.dryRun());
81 IOobjectOption::MUST_READ,
82 IOobjectOption::NO_WRITE,
83 IOobjectOption::NO_REGISTER,
117 auto ioptr = autoPtr<IOobject>::New
121 IOobjectOption::MUST_READ,
122 IOobjectOption::NO_WRITE,
123 IOobjectOption::NO_REGISTER,
129 ioptr && ioptr->typeHeaderOk<IOdictionary>(
true)
158 Info<<
"----------------" <<
nl
159 <<
"Using area-mesh definition";
166 <<
" " <<
io.objectRelPath() <<
nl <<
endl;
178 <<
"Did not find area-mesh definition";
186 <<
" " <<
io.objectRelPath() <<
nl;
200 <<
"----------------" <<
nl
201 <<
"Did not find area-mesh definition";
209 <<
" " <<
io.objectRelPath() <<
nl;
Foam::word regionName(args.getOrDefault< word >("region", Foam::polyMesh::defaultRegion))
Foam::word areaRegionName(args.getOrDefault< word >("area-region", Foam::polyMesh::defaultRegion))
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const word dictName("faMeshDefinition")
const word & areaRegionDir
IOobject meshDictIO(dictPath, runTime, IOobjectOption::MUST_READ, IOobjectOption::NO_WRITE, IOobjectOption::NO_REGISTER, true)
refPtr< IOobject > meshDictIOPtr
fileName dictPath(runTime.system()/regionDir/faMesh::prefix()/areaRegionDir/dictName)
autoPtr< IOdictionary > faMeshDefinitionPtr
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
errorManipArg< error, int > exit(error &err, const int errNo=1)
messageStream Warning
Warning stream (stdout output on master, null elsewhere), with additional 'FOAM Warning' header text.
constexpr char nl
The newline '\n' character (0x0a).
Foam::argList args(argc, argv)