Skip to content

Commit

Permalink
initialize-finalize called once for all tests
Browse files Browse the repository at this point in the history
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
  • Loading branch information
RevathiJambunathan and ax3l authored Jul 21, 2023
1 parent 39f7f33 commit 1b31a0e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_parmparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ def test_parmparse():
dopml = False
ncell = 10

Check warning

Code scanning / CodeQL

Variable defined multiple times Warning test

This assignment to 'ncell' is unnecessary as it is
redefined
before this value is used.
dt = 0.0

Check warning

Code scanning / CodeQL

Variable defined multiple times Warning test

This assignment to 'dt' is unnecessary as it is
redefined
before this value is used.
# Since ParmParse is done in IO Processors, we need amr.initialize first
amr.initialize([])
pp = amr.ParmParse("")
pp.addfile("./parmparse_inputs")
pp_param = amr.ParmParse("param")
(_, ncell) = pp_param.query_int("ncell")
dt = pp_param.get_real("dt")
dopml = pp_param.get_bool("do_pml")

assert dopml == True
assert dt == 1.0e-5
assert ncell == 100
amr.finalize()

0 comments on commit 1b31a0e

Please sign in to comment.