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
Pipeline #16494 passed with stage
in 6 minutes and 15 seconds
......@@ -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");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment