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

clean up temp vorticity array before interpolating

parent 5214b9e4
No related branches found
No related tags found
1 merge request!23WIP: Feature/use cmake
Pipeline #
......@@ -75,6 +75,7 @@ public:
const field<rnumber, be, fc>& in_field) {
static_assert(fc == THREE, "only THREE is supported for now");
std::unique_ptr<real_number[]> extra_rhs(new real_number[getLocalNbParticles()*3]());
std::fill_n(extra_rhs.get(), 3*getLocalNbParticles(), 0);
sample_compute_field(in_field, extra_rhs.get());
completeLoopWithVorticity(dt, extra_rhs.get());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment