-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMain.cpp
More file actions
29 lines (22 loc) · 706 Bytes
/
Main.cpp
File metadata and controls
29 lines (22 loc) · 706 Bytes
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
#include "AdvecSolve_FirstOrderUpwindBox.hpp"
#include <iostream>
int main(int argc, char *argv[])
{
if (argc != 2)
{
std::cout << "Usage: " << argv[0] << " </path/to/parameter file>"
<< std::endl;
return 1;
}
// construct main solver object
AdvecSolve::FirstOrderUpwindBox advec_solve;
// read params from parameter file
advec_solve.read_params(argv[1]);
// construct initial grids and set initial data
advec_solve.set_initial_grids();
// do the evolution
advec_solve.run();
// write animation script which can be passed to gnuplto for visualization
advec_solve.write_gnuplot_animation_script();
return 0;
}