Skip to content

Commit

Permalink
fix compilation cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Mar 31, 2024
1 parent 769f409 commit 5a41f7a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Source/Particles/PhysicalParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ PhysicalParticleContainer::AddPlasma (PlasmaInjector const& plasma_injector, int
rrfac = m_gdb->refRatio(0);
fine_injection_box.coarsen(rrfac);
}
static bool refineplasma = false;
bool refineplasma = false;
amrex::ParticleLocator<amrex::DenseBins<amrex::Box> > refinepatch_locator;
if (WarpX::refineAddplasma)
{
Expand All @@ -993,8 +993,6 @@ PhysicalParticleContainer::AddPlasma (PlasmaInjector const& plasma_injector, int
}
refinepatch_locator.setGeometry(Geom(0));
auto assignpartgrid = refinepatch_locator.getGridAssignor();
// if assign_grid(ijk_vec) > 0, then we are in refinement patch. therefore refine plasma particles
// else, usual num_part

InjectorPosition* inj_pos = plasma_injector.getInjectorPosition();
InjectorDensity* inj_rho = plasma_injector.getInjectorDensity();
Expand Down

0 comments on commit 5a41f7a

Please sign in to comment.