aboutsummaryrefslogtreecommitdiff
path: root/Docs/source/running_cpp
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-09-27 06:21:09 -0700
committerGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-09-27 06:21:09 -0700
commit0d395411dda3514a3e76efe3ef52c371a38d0c53 (patch)
tree8f9057dce8b4eed74e746f3f06e1d347bb246140 /Docs/source/running_cpp
parentd5c46e2ac5c8b6dae10c45e5e2840b568164df13 (diff)
downloadWarpX-0d395411dda3514a3e76efe3ef52c371a38d0c53.tar.gz
WarpX-0d395411dda3514a3e76efe3ef52c371a38d0c53.tar.zst
WarpX-0d395411dda3514a3e76efe3ef52c371a38d0c53.zip
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