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;
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Unit conversion functions.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool optionFound(const word &opt) const
Return true if the named option is found.
static void noParallel()
Remove the parallel options.
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
T optionLookupOrDefault(const word &opt, const T &deflt) const
Read a value from the named option if present.
A class for handling words, derived from string.
static void addOption(const word &opt, const string ¶m="", const string &usage="")
Add to an option to validOptions with usage information.
Foam::argList args(argc, argv)
void printUsage() const
Print usage.