diff options
author | 2020-04-24 08:30:34 -0700 | |
---|---|---|
committer | 2020-04-24 08:30:34 -0700 | |
commit | efd23f0a8cd7225fd0680f81c55a86d5ae74a6d2 (patch) | |
tree | 1dc5b4b41edc1a657ddda7677d80e87cdf28799d /Source | |
parent | e317fd3f1af8d42e10696173118d96d4ecf360b6 (diff) | |
download | WarpX-efd23f0a8cd7225fd0680f81c55a86d5ae74a6d2.tar.gz WarpX-efd23f0a8cd7225fd0680f81c55a86d5ae74a6d2.tar.zst WarpX-efd23f0a8cd7225fd0680f81c55a86d5ae74a6d2.zip |
Prevent the use of Esirkepov with the nodal algorithm (#948)
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Particles/WarpXParticleContainer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<Real, 3>& 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."); } |