Skip to content

Commit

Permalink
fix uninitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
atmyers committed Jan 25, 2024
1 parent 922511b commit 9512d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/particles/ImpactXParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ namespace impactx
int const np = x.size();

// we add particles to lev 0, tile 0 of the first box assigned to this proc
int lid = 0, gid, tid = 0;
int lid = 0, gid = 0, tid = 0;
{
const auto& pmap = ParticleDistributionMap(lid).ProcessorMap();
auto it = std::find(pmap.begin(), pmap.end(), amrex::ParallelDescriptor::MyProc());
Expand Down

0 comments on commit 9512d80

Please sign in to comment.