Line data Source code
1 : //
2 : // This initializes and runs the Alamo hydrodynamic solver implemented in the
3 : // :ref:`Integrator::Hydro` integrator.
4 : //
5 :
6 : #include <iostream>
7 : #include <fstream>
8 : #include <iomanip>
9 :
10 : #include "Util/Util.H"
11 : #include "IO/ParmParse.H"
12 : #include "IO/FileNameParse.H"
13 : #include "IO/WriteMetaData.H"
14 : #include "AMReX_ParmParse.H"
15 :
16 : #if AMREX_SPACEDIM==2
17 : #include "Integrator/Hydro.H"
18 : #endif
19 :
20 6 : int main (int argc, char* argv[])
21 : {
22 6 : Util::Initialize(argc,argv);
23 :
24 : #if AMREX_SPACEDIM==2
25 6 : IO::ParmParse pp;
26 6 : srand(2);
27 :
28 6 : Integrator::Integrator *integrator = nullptr;
29 6 : pp.select_only<Integrator::Hydro>(integrator);
30 :
31 6 : integrator->InitData();
32 6 : integrator->Evolve();
33 6 : delete integrator;
34 : #else
35 :
36 : Util::Abort(INFO,"hydro currently works only in 2d");
37 :
38 : #endif
39 :
40 6 : Util::Finalize();
41 6 : }
|