Skip to content

Commit

Permalink
Apply suggestions from ECP-WarpX#4093
Browse files Browse the repository at this point in the history
  • Loading branch information
EZoni authored Jul 21, 2023
1 parent 302a02e commit 7f17843
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/Particles/MultiParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ MultiParticleContainer::GetChargeDensity (int lev, bool local)
if (!local) {
const Geometry& gm = allcontainers[0]->Geom(lev);
ablastr::utils::communication::SumBoundary(
*rho, 0, rho->nComp(), rho->nGrowVect(), amrex::IntVect(0),
*rho, 0, rho->nComp(), rho->nGrowVect(), rho->nGrowVect(),
WarpX::do_single_precision_comms, gm.periodicity());
}

Expand Down
4 changes: 2 additions & 2 deletions Source/Particles/WarpXParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ WarpXParticleContainer::DepositCharge (amrex::Vector<std::unique_ptr<amrex::Mult
// Exchange guard cells
if (local == false) {
ablastr::utils::communication::SumBoundary(
*rho[lev], 0, rho[lev]->nComp(), rho[lev]->nGrowVect(), amrex::IntVect(0),
*rho[lev], 0, rho[lev]->nComp(), rho[lev]->nGrowVect(), rho[lev]->nGrowVect(),
WarpX::do_single_precision_comms, m_gdb->Geom(lev).periodicity());
}

Expand Down Expand Up @@ -1112,7 +1112,7 @@ WarpXParticleContainer::GetChargeDensity (int lev, bool local)

if (local == false) {
ablastr::utils::communication::SumBoundary(
*rho, 0, rho->nComp(), rho->nGrowVect(), amrex::IntVect(0),
*rho, 0, rho->nComp(), rho->nGrowVect(), rho->nGrowVect(),
WarpX::do_single_precision_comms, gm.periodicity());
}

Expand Down

0 comments on commit 7f17843

Please sign in to comment.