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.name() <<
nl;
116 runTimeMaster.name(),
120 const word oldInstance = masterMesh.pointsInstance();
123 Info<<
"Reading mesh to add for time = " << runTimeToAdd.name() <<
nl;
141 Info<<
"Writing combined mesh to " << runTimeMaster.name() <<
endl;
143 masterMesh.addMesh(meshToAdd);
148 masterMesh.setInstance(oldInstance);
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual Ostream & write(const char)=0
Write character.
Extract command arguments and options from the supplied argc and argv parameters.
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.
bool optionFound(const word &opt) const
Return true if the named option is found.
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
static void noParallel()
Remove the parallel options.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
bool check(bool checkArgs=true, bool checkOpts=true) const
Check argument list.
void exit(const int errNo=1)
Exit : can be called for any error to exit program.
A class for handling file names.
bool clean()
Cleanup file name.
word name() const
Return file name (part beyond last /)
Add a given mesh to the original mesh to create a single new mesh.
Mesh consisting of general polyhedral cells.
static word defaultRegion
Return the default region name.
A class for handling words, derived from string.
int main(int argc, char *argv[])
fileName cwd()
Return current working directory path name.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Foam::argList args(argc, argv)