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 4 : int main (int argc, char* argv[])
21 : {
22 4 : Util::Initialize(argc,argv);
23 :
24 : #if AMREX_SPACEDIM==2
25 4 : IO::ParmParse pp;
26 4 : srand(2);
27 :
28 4 : Integrator::Integrator *integrator = nullptr;
29 4 : pp.select_only<Integrator::Hydro>(integrator);
30 :
31 4 : integrator->InitData();
32 4 : integrator->Evolve();
33 4 : delete integrator;
34 : #else
35 :
36 : Util::Abort(INFO,"hydro currently works only in 2d");
37 :
38 : #endif
39 :
40 4 : Util::Finalize();
41 4 : }
|