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")
102 <<
"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.
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void noParallel()
Remove the parallel options.
void exit(const int errNo=1)
Exit : can be called for any error to exit program.
T optionLookupOrDefault(const word &opt, const T &deflt) const
Read a value from the named option if present.
bool optionFound(const word &opt) const
Return true if the named option is found.
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.
void printUsage() const
Print usage.
Foam::argList args(argc, argv)