aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Docs/source/running_cpp/parameters.rst5
-rw-r--r--Source/WarpX.cpp1
2 files changed, 3 insertions, 3 deletions
diff --git a/Docs/source/running_cpp/parameters.rst b/Docs/source/running_cpp/parameters.rst
index 526c0749c..f28b88a1c 100644
--- a/Docs/source/running_cpp/parameters.rst
+++ b/Docs/source/running_cpp/parameters.rst
@@ -1036,12 +1036,11 @@ Numerics and algorithms
The conductivity, permittivity, and permeability of the computational medium, respectively.
If ``algo.em_solver_medium`` is set to macroscopic, then these properties must be provided.
-* ``interpolation.nox``, ``interpolation.noy``, ``interpolation.noz`` (`integer`)
+* ``interpolation.nox``, ``interpolation.noy``, ``interpolation.noz`` (`1`, `2`, or `3` ; default: 1)
The order of the shape factors for the macroparticles, for the 3 dimensions of space.
Lower-order shape factors result in faster simulations, but more noisy results,
- Note that the implementation in WarpX is more efficient when these 3 numbers are equal,
- and when they are between 1 and 3.
+ Note that in the current implementation in WarpX these 3 numbers must be equal.
* ``warpx.do_dive_cleaning`` (`0` or `1` ; default: 0)
Whether to use modified Maxwell equations that progressively eliminate
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index c9ea8bb94..e4ac79cec 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -583,6 +583,7 @@ WarpX::ReadParameters ()
AMREX_ALWAYS_ASSERT_WITH_MESSAGE( nox == noy and nox == noz ,
"warpx.nox, noy and noz must be equal");
AMREX_ALWAYS_ASSERT_WITH_MESSAGE( nox >= 1, "warpx.nox must >= 1");
+ AMREX_ALWAYS_ASSERT_WITH_MESSAGE( nox <= 3, "warpx.nox must <= 3");
}
{