Skip to content

Commit

Permalink
test error when changing ekin
Browse files Browse the repository at this point in the history
  • Loading branch information
christophlohrmann committed Aug 12, 2021
1 parent 5a32ea2 commit db723d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions testsuite/python/ek_charged_plate.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ def test(self):
positive_ions[i, j, 10].density = 0.0
negative_ions[i, j, 30].density = 0.0

# Test error when trying to change ekin parameters after initialisation
ek._params.update({'agrid': 3,
'T': 0.01})
with self.assertRaises(RuntimeError):
ek._set_params_in_es_core()


if __name__ == "__main__":
ut.main()

0 comments on commit db723d3

Please sign in to comment.