Skip to content

Commit 21cb28a

Browse files
committed
Set expected order of FV::Div_par_fvv to 1
1 parent 706f428 commit 21cb28a

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

tests/MMS/spatial/fci/runtest

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ from scipy.interpolate import RectBivariateSpline as RBS
2323
DIRECTORY = "data"
2424
NPROC = 2
2525
MTHREAD = 2
26-
OPERATORS = (
27-
"grad_par",
28-
"grad2_par2",
29-
"div_par",
30-
"div_par_K_grad_par",
31-
"div_par_K_grad_par_mod",
32-
"laplace_par",
33-
"FV_div_par_mod",
34-
"FV_div_par_fvv",
35-
)
26+
OPERATORS = {
27+
"grad_par": 2,
28+
"grad2_par2": 2,
29+
"div_par": 2,
30+
"div_par_K_grad_par": 2,
31+
"div_par_K_grad_par_mod": 2,
32+
"laplace_par": 2,
33+
"FV_div_par_mod": 2,
34+
"FV_div_par_fvv": 1,
35+
}
3636
# Note that we need at least _2_ interior points for hermite spline
3737
# interpolation due to an awkwardness with the boundaries
3838
NX = 4
@@ -169,10 +169,11 @@ def check_fci_operators(name: str, case: dict) -> bool:
169169
print(f"{operator} errors: l-2 {l_2:f} l-inf {l_inf:f}")
170170

171171
final_errors = transpose(all_errors)
172-
for operator in OPERATORS:
172+
for operator, operator_order in OPERATORS.items():
173173
test_name = f"{operator} {name}"
174+
expected_order = min(order, operator_order)
174175
success = assert_convergence(
175-
final_errors[operator]["l_2"], dx, test_name, order
176+
final_errors[operator]["l_2"], dx, test_name, expected_order
176177
)
177178
if not success:
178179
failures.append(test_name)

0 commit comments

Comments
 (0)