Skip to content
Snippets Groups Projects
Commit 7a9a9024 authored by Berenger Bramas's avatar Berenger Bramas
Browse files

reset array before using it to store rhs (it contained positions before that)

parent e11ff1b1
No related branches found
No related tags found
1 merge request!23WIP: Feature/use cmake
Pipeline #
......@@ -153,6 +153,7 @@ int test_interpolation<rnumber>::do_work()
this->ps->get_step_idx()-1);
/// sample velocity at particles' position
std::fill_n(p3data.get(), 3*this->ps->getLocalNbParticles(), 0);
this->ps->sample_compute_field(*this->velocity, p3data.get());
DEBUG_MSG("first vel value is %g\n", p3data.get()[0]);
this->particles_sample_writer_mpi->template save_dataset<3>(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment