aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r--Source/Particles/WarpXParticleContainer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp
index 21ab1408c..8eec0314d 100644
--- a/Source/Particles/WarpXParticleContainer.cpp
+++ b/Source/Particles/WarpXParticleContainer.cpp
@@ -430,8 +430,8 @@ WarpXParticleContainer::DepositCurrent (WarpXParIter& pti,
const std::array<amrex::Real, 3>& xyzmin = WarpX::LowerCorner(tilebox, depos_lev, 0.5_rt*dt);
if (WarpX::current_deposition_algo == CurrentDepositionAlgo::Esirkepov) {
- if (WarpX::do_nodal==1) {
- amrex::Abort("The Esirkepov algorithm cannot be used with a nodal grid.");
+ if (WarpX::grid_type == GridType::Collocated) {
+ amrex::Abort("The Esirkepov algorithm cannot be used with a collocated grid.");
}
}