13 const char* &scope,
bool &verbose,
bool &geometryOnly,
int &CPU_ThreadsNr)
16 for (
int i = 1; i < argc; i++)
18 if (strcmp(argv[i],
"-h") == 0)
20 else if (strcmp(argv[i],
"-f") == 0)
24 pathToProgramConfigFile = argv[i+1];
27 else if (strcmp(argv[i],
"-cf") == 0)
31 pathToCaseFolder = argv[i+1];
34 else if (strcmp(argv[i],
"-g") == 0)
38 else if (strcmp(argv[i],
"-j") == 0)
42 CPU_ThreadsNr = std::stoul(argv[i+1]);
45 else if (strcmp(argv[i],
"-s") == 0)
52 else if (strcmp(argv[i],
"-v") == 0)
58 std::cout <<
"Unrecognised option \n\n" << argv[i] << std::endl;
64 void MF::Parser::CmdLineArgsParser::usageInfo()
68 <<
"usage: Microflow <options>\n" 70 <<
"The <options> can be:\n" 71 <<
" -cf <path> Path to case folder\n" 72 <<
" -f <path> Path to Microflow configuration file \n" 73 <<
" -h Print this usage statement\n" 74 <<
" -g Only geometry build and voxelize it \n" 75 <<
" -j <nr> Number of CPU threads to be allocated \n" 76 <<
" -s <scope> Scope in config file to be used\n"
void parseCmdLineArgs(int argc, char **argv, const char *&pathToProgramConfigFile, const char *&pathToCaseFolder, const char *&scope, bool &verbose, bool &geometryOnly, int &CPU_ThreadsNr)