CosmoGRaPH v0.0
scalar.h
1 
5 #ifndef COSMO_SCALAR_SIM_H
6 #define COSMO_SCALAR_SIM_H
7 
8 #include "sim.h"
9 #include "../components/scalar/scalar.h"
10 
11 namespace cosmo
12 {
13 
17 class ScalarSim : public CosmoSim
18 {
19 protected:
20  Scalar * scalarSim;
21 
22 public:
23  ScalarSim(){}
24  ~ScalarSim()
25  {
26  delete iodata;
27  delete bssnSim;
28  delete fourier;
29  if(use_bardeen)
30  {
31  delete bardeen;
32  }
33 
34  std::cout << std::flush;
35  }
36 
37  void init();
38  void setICs();
39  void initScalarStep();
40  void outputScalarStep();
41  void runScalarStep();
42  void runStep();
43 };
44 
45 } /* namespace cosmo */
46 
47 #endif
Definition: scalar.h:17
Definition: bardeen.cc:5
Class implementing functionality for a scalar field that relies on a BSSN instance.
Definition: scalar.h:29
Definition: sim.h:17