Skip to content
Snippets Groups Projects
Commit 32e6ba50 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

more control over particle_output_hdf5

I need to use it for many species of particles, so I added direct
control over the particle species name.
parent e6b94e6c
No related branches found
No related tags found
1 merge request!23WIP: Feature/use cmake
Pipeline #
......@@ -21,7 +21,7 @@ class particles_output_hdf5 : public abstract_particles_output<partsize_t,
size_particle_positions,
size_particle_rhs>;
const std::string particle_species_name;
std::string particle_species_name;
hid_t file_id;
const partsize_t total_nb_particles;
......@@ -90,6 +90,12 @@ public:
~particles_output_hdf5(){}
void update_particle_species_name(
const std::string new_name)
{
this->particle_species_name.assign(new_name);
}
int close_file(void){
if(Parent::isInvolved()){
TIMEZONE("particles_output_hdf5::close_file");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment