CosmoGRaPH v0.0
static.h
1 #ifndef COSMO_STATIC_SIM_H
2 #define COSMO_STATIC_SIM_H
3 
4 #include "sim.h"
5 #include "../components/static/static.h"
6 #include "../components/Lambda/lambda.h"
7 #include "../components/phase_space_sheet/sheets.h"
8 
9 namespace cosmo
10 {
11 
15 class StaticSim : public CosmoSim
16 {
17 protected:
18  Sheet * raySheet;
19  Static * staticSim;
20  Lambda * lambda;
21  bool take_ray_step;
22  idx_t raysheet_flip_step;
23 public:
24  StaticSim();
25  ~StaticSim()
26  {
27  std::cout << "Cleaning up...";
28  delete iodata;
29  delete bssnSim;
30  delete fourier;
31  if(use_bardeen)
32  {
33  delete bardeen;
34  }
35  std::cout << "done.\n";
36  std::cout << std::flush;
37  }
38 
39  void init();
40  void setICs();
41  void initStaticStep();
42  void outputStaticStep();
43  void runStaticStep();
44  void runStep();
45 };
46 
47 } /* namespace cosmo */
48 
49 #endif
Definition: bardeen.cc:5
Definition: static.h:15
void setICs()
Set conformally flat initial conditions for a w=0 fluid in synchronous gauge.
Definition: static.cc:41
Definition: sim.h:17
Definition: sheets.h:47
Definition: static.h:13
Definition: lambda.h:11