58 int main(
int argc,
char *argv[])
65 "specify alternative input file name - default is otape17"
71 "specify kiva version [kiva3|kiva3v] - default is '3v'"
77 "minimum z-height for transferring liner faces to cylinder-head"
86 kivaVersions kivaVersion = kiva3v;
89 const word versionName =
args[
"version"];
91 if (versionName ==
"kiva3")
95 else if (versionName ==
"kiva3v")
104 <<
"KIVA file version " << versionName <<
" not supported"
109 scalar zHeadMin = -great;
static void addOption(const word &opt, const string ¶m="", const string &usage="")
Add to an option to validOptions with 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.
T optionLookupOrDefault(const word &opt, const T &deflt) const
Read a value from the named option if present.
void printUsage() const
Print usage.
A class for handling file names.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
int main(int argc, char *argv[])
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Foam::argList args(argc, argv)