aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Docs/source/running_cpp/parameters.rst6
-rw-r--r--Examples/Physics_applications/laser_acceleration/inputs_3d2
-rw-r--r--Source/Parallelization/InterpolateCurrentFineToCoarse.H4
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp1
-rw-r--r--Source/Particles/WarpXParticleContainer.cpp1
5 files changed, 9 insertions, 5 deletions
diff --git a/Docs/source/running_cpp/parameters.rst b/Docs/source/running_cpp/parameters.rst
index cba041e6d..b2810329a 100644
--- a/Docs/source/running_cpp/parameters.rst
+++ b/Docs/source/running_cpp/parameters.rst
@@ -386,6 +386,10 @@ Particle initialization
If `1` is given, both charge deposition and current deposition will
not be done, thus that species does not contribute to the fields.
+* ``<species_name>.do_not_push`` (`0` or `1` optional; default `0`)
+ If `1` is given, this species will not be pushed
+ by any pusher during the simulation.
+
* ``<species>.plot_species`` (`0` or `1` optional; default `1`)
Whether to plot particle quantities for this species.
@@ -1042,7 +1046,7 @@ Diagnostics and output
time interval is expressed in the laboratory frame).
* ``slice.particle_slice_width_lab`` (`float`, in meters)
- Only used when ``warpx.do_boosted_frame_diagnostic`` is ``1`` and
+ Only used when ``warpx.do_back_transformed_diagnostics`` is ``1`` and
``slice.num_slice_snapshots_lab`` is non-zero. Particles are
copied from the full back-transformed diagnostic to the reduced
slice diagnostic if there are within the user-defined width from
diff --git a/Examples/Physics_applications/laser_acceleration/inputs_3d b/Examples/Physics_applications/laser_acceleration/inputs_3d
index 017b82962..3a0368e72 100644
--- a/Examples/Physics_applications/laser_acceleration/inputs_3d
+++ b/Examples/Physics_applications/laser_acceleration/inputs_3d
@@ -54,7 +54,7 @@ electrons.momentum_distribution_type = "constant"
electrons.do_continuous_injection = 1
#################################
-############ PLASMA #############
+############ LASER #############
#################################
lasers.nlasers = 1
lasers.names = laser1
diff --git a/Source/Parallelization/InterpolateCurrentFineToCoarse.H b/Source/Parallelization/InterpolateCurrentFineToCoarse.H
index cbbcdfab5..58451c6b7 100644
--- a/Source/Parallelization/InterpolateCurrentFineToCoarse.H
+++ b/Source/Parallelization/InterpolateCurrentFineToCoarse.H
@@ -63,9 +63,9 @@ public:
// return zero for out-of-bounds accesses during interpolation
// this is efficiently used as a method to add neutral elements beyond guards in the average below
- auto const fine = [fine_unsafe] AMREX_GPU_DEVICE (int const j, int const k, int const l) noexcept
+ auto const fine = [fine_unsafe] AMREX_GPU_DEVICE (int const jj, int const kk, int const ll) noexcept
{
- return fine_unsafe.contains(j, k, l) ? fine_unsafe(j, k, l) : amrex::Real{0.};
+ return fine_unsafe.contains(jj, kk, ll) ? fine_unsafe(jj, kk, ll) : amrex::Real{0.};
};
int const ii = i * m_refinement_ratio;
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index 0d9d4fc1a..936a64c9c 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -40,6 +40,7 @@ PhysicalParticleContainer::PhysicalParticleContainer (AmrCore* amr_core, int isp
pp.query("do_splitting", do_splitting);
pp.query("split_type", split_type);
pp.query("do_not_deposit", do_not_deposit);
+ pp.query("do_not_push", do_not_push);
pp.query("do_continuous_injection", do_continuous_injection);
pp.query("initialize_self_fields", initialize_self_fields);
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp
index 15a6cff9b..6abc02139 100644
--- a/Source/Particles/WarpXParticleContainer.cpp
+++ b/Source/Particles/WarpXParticleContainer.cpp
@@ -129,7 +129,6 @@ WarpXParticleContainer::ReadParameters ()
do_tiling = true;
#endif
pp.query("do_tiling", do_tiling);
- pp.query("do_not_push", do_not_push);
initialized = true;
}