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

temporary array for sampling needs to be cleaned up

parent f6178cb1
No related branches found
No related tags found
1 merge request!23WIP: Feature/use cmake
Pipeline #
...@@ -103,6 +103,7 @@ int NSVEparticles<rnumber>::do_stats() ...@@ -103,6 +103,7 @@ int NSVEparticles<rnumber>::do_stats()
this->ps->get_step_idx()-1); this->ps->get_step_idx()-1);
/// sample velocity /// sample velocity
std::fill_n(pdata.get(), 3*this->ps->getLocalNbParticles(), 0);
this->ps->sample_compute_field(*this->tmp_vec_field, pdata.get()); this->ps->sample_compute_field(*this->tmp_vec_field, pdata.get());
this->particles_sample_writer_mpi->template save_dataset<3>( this->particles_sample_writer_mpi->template save_dataset<3>(
"tracers0", "tracers0",
...@@ -116,6 +117,7 @@ int NSVEparticles<rnumber>::do_stats() ...@@ -116,6 +117,7 @@ int NSVEparticles<rnumber>::do_stats()
/// compute acceleration and sample it /// compute acceleration and sample it
this->fs->compute_Lagrangian_acceleration(this->tmp_vec_field); this->fs->compute_Lagrangian_acceleration(this->tmp_vec_field);
this->tmp_vec_field->ift(); this->tmp_vec_field->ift();
std::fill_n(pdata.get(), 3*this->ps->getLocalNbParticles(), 0);
this->ps->sample_compute_field(*this->tmp_vec_field, pdata.get()); this->ps->sample_compute_field(*this->tmp_vec_field, pdata.get());
this->particles_sample_writer_mpi->template save_dataset<3>( this->particles_sample_writer_mpi->template save_dataset<3>(
"tracers0", "tracers0",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment