Ignis
Loading...
Searching...
No Matches
main.cc
Go to the documentation of this file.
1
2#include <string>
3#include <iostream>
4
5using std::string;
6using std::cout, std::endl;
7
9
10int driver_premixed();
13int driver_flamelet();
14
16
17int main(int nargs, char *argv[]) {
18
19 int ireturn;
20
21 if(nargs < 2) {
22 ireturn = driver_premixed();
23 }
24 else {
25 if (string(argv[1]) == "premixed")
26 ireturn = driver_premixed();
27 else if (string(argv[1]) == "diffusion")
28 ireturn = driver_diffusion();
29 else if (string(argv[1]) == "diffusion_table")
30 ireturn = driver_diffusion_table();
31 else if (string(argv[1]) == "flamelet")
32 ireturn = driver_flamelet();
33 else {
34 cout << "\n\nERROR: invalid case type argument\n" << endl;
35 ireturn = 1;
36 }
37 }
38
39 return ireturn;
40}
int main(int nargs, char *argv[])
Definition main.cc:17
int driver_diffusion()
int driver_flamelet()
int driver_premixed()
int driver_diffusion_table()