Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisZYJ committed Oct 3, 2024
1 parent 6e6fd7f commit 01b4c83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions toolchain/mfc/test/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,6 @@ def compute_tolerance(self) -> float:
tolerance = 1e-5
tolerance = 3e-12

if self.params["weno_order"] == 7:
tolerance = 1e-11

return tolerance

@dataclasses.dataclass
Expand Down
8 changes: 4 additions & 4 deletions toolchain/mfc/test/cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def alter_capillary():
cases.append(define_case_d(stack, [f"capillary=T","model_eqns=3"],{}))
stack.pop()

def alter_weno():
def alter_weno(dimInfo):
for weno_order in [3, 5, 7]:
stack.push(f"weno_order={weno_order}", {'weno_order': weno_order})
for mapped_weno, wenoz, teno, mp_weno in itertools.product('FT', repeat=4):
Expand All @@ -99,12 +99,12 @@ def alter_weno():
if "wenoz" in data and weno_order == 7:
data["wenoz_q"] = 3.0

if weno_order == 7:
if weno_order == 7 and "z" in dimInfo[0]:
stack.push("", {'m': 35, 'n': 35, 'p': 35})

cases.append(define_case_d(stack, trace, data))

if weno_order == 7:
if weno_order == 7 and "z" in dimInfo[0]:
stack.pop()

stack.pop()
Expand Down Expand Up @@ -699,7 +699,7 @@ def foreach_dimension():
for dimInfo, dimParams in get_dimensions():
stack.push(f"{len(dimInfo[0])}D", dimParams)
alter_bcs(dimInfo)
alter_weno()
alter_weno(dimInfo)
alter_num_fluids(dimInfo)
if len(dimInfo[0]) == 2:
alter_2d()
Expand Down

0 comments on commit 01b4c83

Please sign in to comment.