diff --git a/Docs/source/usage/python.rst b/Docs/source/usage/python.rst index 90015a85b9a..221b1757829 100644 --- a/Docs/source/usage/python.rst +++ b/Docs/source/usage/python.rst @@ -69,6 +69,10 @@ EmbeddedBoundary Applied fields ^^^^^^^^^^^^^^ +AnalyticInitialField +"""""""""""""""""""" +.. autoclass:: pywarpx.picmi.AnalyticInitialField + ConstantAppliedField """""""""""""""""""" .. autoclass:: pywarpx.picmi.ConstantAppliedField diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index 9e88da7c66e..8dd346f2884 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -1213,9 +1213,11 @@ def initialize_inputs(self): class AnalyticInitialField(picmistandard.PICMI_AnalyticAppliedField): def init(self, kw): self.mangle_dict = None + self.maxlevel_extEMfield_init = kw.pop('warpx_maxlevel_extEMfield_init', None); def initialize_inputs(self): # Note that lower and upper_bound are not used by WarpX + pywarpx.warpx.maxlevel_extEMfield_init = self.maxlevel_extEMfield_init; if self.mangle_dict is None: # Only do this once so that the same variables are used in this distribution