Skip to content

Commit

Permalink
Merge pull request #524 from nicolasaunai/fixJ
Browse files Browse the repository at this point in the history
fix magnetic key in GetJ
  • Loading branch information
nicolasaunai authored Apr 11, 2021
2 parents 083d856 + e84a76d commit 65eda4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyphare/pyphare/pharesee/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ def _current1d(by, bz, xby, xbz):


def _compute_current(patch):
By = patch.patch_datas["B_y"].dataset[:]
xby = patch.patch_datas["B_y"].x
Bz = patch.patch_datas["B_z"].dataset[:]
xbz = patch.patch_datas["B_z"].x
By = patch.patch_datas["By"].dataset[:]
xby = patch.patch_datas["By"].x
Bz = patch.patch_datas["Bz"].dataset[:]
xbz = patch.patch_datas["Bz"].x
Jy, Jz = _current1d(By, Bz, xby, xbz)
return ({"name":"J_y", "data":Jy,"centering":"primal"},
{"name":"J_z", "data":Jz,"centering":"primal"})
Expand Down

0 comments on commit 65eda4c

Please sign in to comment.