59 int main(
int argc,
char *argv[])
66 "specify alternative input file name - default is otape17"
72 "specify kiva version [kiva3|kiva3v] - default is '3v'"
78 "minimum z-height for transferring liner faces to cylinder-head"
87 kivaVersions kivaVersion = kiva3v;
90 const word versionName =
args[
"version"];
92 if (versionName ==
"kiva3")
96 else if (versionName ==
"kiva3v")
105 <<
"KIVA file version " << versionName <<
" not supported"
110 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)
Unit conversion functions.