-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
35 lines (30 loc) · 1.03 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <iostream>
#include "IntCond.h"
#include "RuntimeParameters.h"
#include "SolutionProcedure.h"
#include <vector>
#include "RuntimeJoke.h"
#include <ostream>
#include <stdlib.h>
#include <iostream>
#include <sstream>
#include <fstream>
int main(int argc, char *argv[]) {
// Test user specified input file
if (argc != 4){
std::cout << "Error: specify" << std::endl
<< "Type of PDE" << std::endl
<< "Inputfile" << std::endl
<< "Outputfile" << std::endl;
}
// Use first string passed to determine what type of equation is being solved
std::string whichPDE = argv[1];
// Set PDE Type in SolutionProcedure
SolutionProcedure* currentProcedure = new SolutionProcedure;
// create output file
std::string userOutputFile = argv[3];
// pass from command line the filename to be used for procedure
std::string userRuntimeArguments = argv[2];
currentProcedure->start_procedure(userRuntimeArguments, userOutputFile, whichPDE);
return 0;
}