aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/picmi.py
diff options
context:
space:
mode:
authorGravatar Lizzette Corrales <37250093+lzcorrales@users.noreply.github.com> 2023-06-27 08:44:12 -0700
committerGravatar GitHub <noreply@github.com> 2023-06-27 08:44:12 -0700
commit3dbfff2cf50dab64aa33ba2feda44a9934efb4a7 (patch)
treea03653e26510ac9a24ee4db657ca80e45caae5bb /Python/pywarpx/picmi.py
parentd1277b05620bf5f43e0d6bc7b8988be00c755559 (diff)
downloadWarpX-3dbfff2cf50dab64aa33ba2feda44a9934efb4a7.tar.gz
WarpX-3dbfff2cf50dab64aa33ba2feda44a9934efb4a7.tar.zst
WarpX-3dbfff2cf50dab64aa33ba2feda44a9934efb4a7.zip
Adding current density to Field Reduction reduced diagnostic (#3980)
* Adding j in FieldReduction * Modiyfying input file with FieldReduced diag * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update Source/Diagnostics/ReducedDiags/FieldReduction.H * updating Field Reduction Docs to include current density * Update Source/Diagnostics/ReducedDiags/FieldReduction.H Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> * adding cuurent density BackwardCompatibility to Field Reduction diagnostic * including E dot j density using the modifyed Field Reduction * fixing picmi interface * adding Edotj to automated python test * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Lizzette Corrales <lzcorrales@kong.dhcp.lbl.gov> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com>
Diffstat (limited to 'Python/pywarpx/picmi.py')
-rw-r--r--Python/pywarpx/picmi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py
index 0f0426ca6..efa14badd 100644
--- a/Python/pywarpx/picmi.py
+++ b/Python/pywarpx/picmi.py
@@ -2478,7 +2478,7 @@ class ReducedDiagnostic(picmistandard.base._ClassWithInit, WarpXDiagnosticBase):
self.reduction_type = kw.pop("reduction_type")
reduced_function = kw.pop("reduced_function")
- self.__setattr__("reduced_function(x,y,z,Ex,Ey,Ez,Bx,By,Bz)", reduced_function)
+ self.__setattr__("reduced_function(x,y,z,Ex,Ey,Ez,Bx,By,Bz,jx,jy,jz)", reduced_function)
# Check the reduced function expression for constants
for k in list(kw.keys()):