Added class for population logging.

This commit is contained in:
Christian
2019-06-04 09:23:55 +02:00
parent 8af5ca0427
commit 142197d10a
25 changed files with 669 additions and 80 deletions
+5 -8
View File
@@ -13,27 +13,24 @@
class SF_Particle_Logger : public Particle_Logger_Base {
hid_t *h5g_z;
H5TB_Interface h5tb;
H5TB_Particle_Interface h5tb;
public:
SF_Particle_Logger(species this_species, hid_t *h5g_z) : Particle_Logger_Base(this_species) {
this->h5g_z = h5g_z;
create();
create(h5g_z);
}
private:
void create();
void create(hid_t *h5g_z);
public:
void log(const Particle &logPart, const vec3 &oldLoc_m);
};
inline void SF_Particle_Logger::create() {
inline void SF_Particle_Logger::create(hid_t *h5g_z) {
std::string speciesName = get_species_string(get_species());
h5tb = H5TB_Interface(speciesName, h5g_z);
h5tb = H5TB_Particle_Interface(speciesName, h5g_z);
}
inline void SF_Particle_Logger::log(const Particle &logPart, const vec3 &oldLoc_m) {