42 if (casePath.empty() || casePath ==
".")
47 else if (casePath[0] !=
'/' && casePath.
name() ==
"..")
50 casePath =
cwd()/casePath;
58 int main(
int argc,
char *argv[])
73 "specify alternative mesh region for the master mesh" 81 "specify alternative mesh region for the additional mesh" 100 getRootCase(masterCase);
101 getRootCase(addCase);
103 Info<<
"Master: " << masterCase <<
" region " << masterRegion <<
nl 104 <<
"mesh to add: " << addCase <<
" region " << addRegion <<
endl;
106 #include "createTimes.H" 108 Info<<
"Reading master mesh for time = " << runTimeMaster.timeName() <<
nl;
116 runTimeMaster.timeName(),
120 const word oldInstance = masterMesh.pointsInstance();
123 Info<<
"Reading mesh to add for time = " << runTimeToAdd.timeName() <<
nl;
131 runTimeToAdd.timeName(),
141 Info<<
"Writing combined mesh to " << runTimeMaster.timeName() <<
endl;
143 masterMesh.addMesh(meshToAdd);
148 masterMesh.setInstance(oldInstance);
A class for handling file names.
bool clean()
Cleanup file name.
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
static word defaultRegion
Return the default region name.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void noParallel()
Remove the parallel options.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
Add a given mesh to the original mesh to create a single new mesh.
void exit(const int errNo=1)
Exit : can be called for any error to exit program.
word name() const
Return file name (part beyond last /)
bool optionFound(const word &opt) const
Return true if the named option is found.
A class for handling words, derived from string.
Extract command arguments and options from the supplied argc and argv parameters. ...
bool check(bool checkArgs=true, bool checkOpts=true) const
Check argument list.
static void addOption(const word &opt, const string ¶m="", const string &usage="")
Add to an option to validOptions with usage information.
fileName cwd()
Return current working directory path name.
virtual Ostream & write(const token &)=0
Write next token to stream.
Mesh consisting of general polyhedral cells.
static void addNote(const string &)
Add extra notes for the usage information.
Foam::argList args(argc, argv)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...