Added class for population logging.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user