Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 21, 2023
1 parent 408b503 commit 4970292
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/parmparse_inputs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
param.dt = 1.e-5
param.ncell = 100
param.do_pml = 1
param.do_pml = 1
13 changes: 7 additions & 6 deletions tests/test_parmparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@

import amrex.space3d as amr


def test_parmparse():
dopml = False
ncell = 10
dt = 0.
dt = 0.0
# Since ParmParse is done in IO Processors, we need amr.initialize first
amr.initialize([])
pp = amr.ParmParse("")
pp = amr.ParmParse("")
pp.addfile("./parmparse_inputs")
pp_param = amr.ParmParse("param")
(_,ncell) = pp_param.query_int("ncell")
(_, 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.e-5
assert ncell==100
assert dopml == True
assert dt == 1.0e-5
assert ncell == 100
amr.finalize()

0 comments on commit 4970292

Please sign in to comment.