Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit bfdb1b99 authored by frey_m's avatar frey_m
Browse files

AMR test case: Fixed bug of uninitialized member variable.

The uninitialized member variable "nLocalParticles_m" of the AmrPartBunch class caused problems for
multi-bunch simulations.

modified:   ippl/test/AMR/AmrPartBunch.cpp
parent 2f54a9f4
No related branches found
No related tags found
No related merge requests found
......@@ -12,14 +12,16 @@ size_t AmrPartBunch::nAttributes = 10;
AmrPartBunch::AmrPartBunch(const Geometry& geom,
const DistributionMapping & dmap,
const BoxArray & ba)
: ParticleContainer(geom, dmap, ba)
: ParticleContainer(geom, dmap, ba),
nLocalParticles_m(0)
{ }
AmrPartBunch::AmrPartBunch(const Array<Geometry>& geom,
const Array<DistributionMapping>& dmap,
const Array<BoxArray>& ba,
const Array<int>& rr)
: ParticleContainer(geom, dmap, ba, rr)
: ParticleContainer(geom, dmap, ba, rr),
nLocalParticles_m(0)
{ }
......@@ -248,4 +250,4 @@ void AmrPartBunch::setB(Vector_t Bf, int i) {
for (int d = 0; d < 3; ++d)
m_particles[l][g][dq].m_data[d + 7] = Bf(d);
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment