CosmoGRaPH
v0.0
Main Page
Classes
Files
File List
sims
particles.h
1
#ifndef COSMO_PARTICLE_SIM_H
2
#define COSMO_PARTICLE_SIM_H
3
4
#include "sim.h"
5
#include "../components/particles/particles.h"
6
7
8
namespace
cosmo
9
{
10
14
class
ParticleSim
:
public
CosmoSim
15
{
16
protected
:
17
Particles
* particles;
18
19
public
:
20
ParticleSim
() {}
21
~
ParticleSim
()
22
{
23
std::cout <<
"Cleaning up..."
;
24
25
delete
particles;
26
delete
iodata;
27
delete
bssnSim;
28
delete
fourier;
29
if
(use_bardeen)
30
{
31
delete
bardeen;
32
}
33
34
std::cout <<
"done.\n"
;
35
std::cout << std::flush;
36
}
37
38
void
init();
39
void
setICs();
40
void
initParticleStep();
41
void
outputParticleStep();
42
void
runParticleStep();
43
void
runStep();
44
};
45
46
}
/* namespace cosmo */
47
48
#endif
cosmo
Definition:
bardeen.cc:5
cosmo::Particles
Class for evolving non-interacting matter particles.
Definition:
particles.h:18
cosmo::ParticleSim
Definition:
particles.h:14
cosmo::CosmoSim
Definition:
sim.h:17