Go to the documentation of this file.
42 if (casePath.empty() || casePath ==
".")
47 else if (casePath[0] !=
'/' && casePath.
name() ==
"..")
50 casePath =
cwd()/casePath;
58 int main(
int argc,
char *argv[])
72 "specify alternative mesh region for the master mesh"
80 "specify alternative mesh region for the additional mesh"
103 if (
pos != string::npos &&
pos != 0)
106 masterCase +=
'/' + processorName;
107 addCase +=
'/' + processorName;
111 getRootCase(masterCase);
112 getRootCase(addCase);
114 Info<<
"Master: " << masterCase <<
" region " << masterRegion <<
nl
115 <<
"mesh to add: " << addCase <<
" region " << addRegion <<
endl;
117 #include "createTimes.H"
119 Info<<
"Reading master mesh for time = " << runTimeMaster.timeName() <<
nl;
127 runTimeMaster.timeName(),
131 const word oldInstance = masterMesh.pointsInstance();
134 Info<<
"Reading mesh to add for time = " << runTimeToAdd.timeName() <<
nl;
142 runTimeToAdd.timeName(),
152 Info<<
"Writing combined mesh to " << runTimeMaster.timeName() <<
endl;
154 masterMesh.addMesh(meshToAdd);
159 masterMesh.setInstance(oldInstance);
static SLList< string > validArgs
A list of valid (mandatory) arguments.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for handling words, derived from string.
A class for handling file names.
static void addOption(const word &opt, const string ¶m="", const string &usage="")
Add to an option to validOptions with usage information.
static void addNote(const string &)
Add extra notes for the usage information.
static word defaultRegion
Return the default region name.
Extract command arguments and options from the supplied argc and argv parameters.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Mesh consisting of general polyhedral cells.
word name() const
Return file name (part beyond last /)
Add a given mesh to the original mesh to create a single new mesh.
virtual Ostream & write(const token &)=0
Write next token to stream.
int main(int argc, char *argv[])
graph_traits< Graph >::vertices_size_type size_type
void exit(const int errNo=1)
Exit : can be called for any error to exit program.
bool optionFound(const word &opt) const
Return true if the named option is found.
fileName cwd()
Return current working directory path name.
const fileName & caseName() const
Return case name (parallel run) or global case (serial run)
bool clean()
Cleanup file name.
Foam::argList args(argc, argv)
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
bool check(bool checkArgs=true, bool checkOpts=true) const
Check argument list.
dimensionedScalar pos(const dimensionedScalar &ds)