8#include "getDimension.h"
22 int getDimension(
int argc,
char **argv)
36 while (!done && i < argc) {
38 length = strlen(option);
41 if (option[0] ==
'-') {
42 if (option[1] ==
'd') {
46 if (found && length > 2) {
54 <<
"Invalid parameter of command option -d:"
55 <<
" |" << option <<
"|" << std::endl;
56 UTIL_THROW(
"Invalid parameter of command option -d");
67 std::cout <<
"Invalid parameter of command option -d:"
68 <<
" |" << option <<
"|" << std::endl;
69 UTIL_THROW(
"Invalid parameter of command option -d");
90 std::cout <<
"Invalid parameter of command line option -d:"
91 <<
" |" << arg <<
"|" << std::endl;
92 std::cout <<
"Value of attempted conversion to integer: "
94 UTIL_THROW(
"Invalid parameter of command line option -d");
File containing preprocessor macros for error handling.
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
#define UTIL_THROW(msg)
Macro for throwing an Exception, reporting function, file and line number.
PSCF package top-level namespace.
Utility classes for scientific computation.