From efd23f0a8cd7225fd0680f81c55a86d5ae74a6d2 Mon Sep 17 00:00:00 2001 From: Remi Lehe Date: Fri, 24 Apr 2020 08:30:34 -0700 Subject: Prevent the use of Esirkepov with the nodal algorithm (#948) --- Source/Particles/WarpXParticleContainer.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/Particles/WarpXParticleContainer.cpp') diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp index 40debd257..e395023f4 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -309,6 +309,9 @@ WarpXParticleContainer::DepositCurrent(WarpXParIter& pti, const std::array& xyzmin = WarpX::LowerCorner(tilebox, galilean_shift, depos_lev); 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 ( (v_galilean[0]!=0) or (v_galilean[1]!=0) or (v_galilean[2]!=0)){ amrex::Abort("The Esirkepov algorithm cannot be used with the Galilean algorithm."); } -- cgit v1.2.3