aboutsummaryrefslogtreecommitdiff
path: root/Docs/source/running_cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-09-27 08:50:33 -0700
committerGravatar GitHub <noreply@github.com> 2019-09-27 08:50:33 -0700
commit142189d852526d48a87a0fea7cefbdc53a2819ce (patch)
treea74a3303829f3db60a1abbf89d7c1711e2963029 /Docs/source/running_cpp
parent4ebc46d8005bf261451420f83fa25f8c3a83c8f1 (diff)
parent0d395411dda3514a3e76efe3ef52c371a38d0c53 (diff)
downloadWarpX-142189d852526d48a87a0fea7cefbdc53a2819ce.tar.gz
WarpX-142189d852526d48a87a0fea7cefbdc53a2819ce.tar.zst
WarpX-142189d852526d48a87a0fea7cefbdc53a2819ce.zip
Merge pull request #415 from ECP-WarpX/change_default_buffer
Change the default gather buffer size
Diffstat (limited to 'Docs/source/running_cpp')
-rw-r--r--Docs/source/running_cpp/parameters.rst22
1 files changed, 14 insertions, 8 deletions
diff --git a/Docs/source/running_cpp/parameters.rst b/Docs/source/running_cpp/parameters.rst
index 17b6a1c5d..30687244e 100644
--- a/Docs/source/running_cpp/parameters.rst
+++ b/Docs/source/running_cpp/parameters.rst
@@ -70,6 +70,16 @@ Setting up the field mesh
This patch is rectangular, and thus its extent is given here by the coordinates
of the lower corner (``warpx.fine_tag_lo``) and upper corner (``warpx.fine_tag_hi``).
+* ``warpx.n_current_deposition_buffer`` (`integer`)
+ When using mesh refinement: the particles that are located inside
+ a refinement patch, but within ``n_current_deposition_buffer`` cells of
+ the edge of this patch, will deposit their charge and current to the
+ lower refinement level, instead of depositing to the refinement patch
+ itself. See the section :doc:`../../theory/amr` for more details.
+ If this variable is not explicitly set in the input script,
+ ``n_current_deposition_buffer`` is automatically set so as to be large
+ enough to hold the particle shape, on the fine grid
+
* ``warpx.n_field_gather_buffer`` (`integer`; 0 by default)
When using mesh refinement: the particles that are located inside
a refinement patch, but within ``n_field_gather_buffer`` cells of
@@ -77,14 +87,10 @@ Setting up the field mesh
level, instead of gathering the fields from the refinement patch itself.
This avoids some of the spurious effects that can occur inside the
refinement patch, close to its edge. See the section
- :doc:`../../theory/amr` for more details.
-
-* ``warpx.n_current_deposition_buffer`` (`integer`)
- When using mesh refinement: the particles that are located inside
- a refinement patch, but within ``n_current_deposition_buffer`` cells of
- the edge of this patch, will deposit their charge and current to the
- lower refinement level, instead of depositing to the refinement patch
- itself. See the section :doc:`../../theory/amr` for more details.
+ :doc:`../../theory/amr` for more details. If this variable is not
+ explicitly set in the input script, ``n_field_gather_buffer`` is
+ automatically set so that it is one cell larger than
+ ``n_current_deposition_buffer``, on the fine grid.
* ``particles.deposit_on_main_grid`` (`list of strings`)
When using mesh refinement: the particle species whose name are included