File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed
Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -23,16 +23,16 @@ from scipy.interpolate import RectBivariateSpline as RBS
2323DIRECTORY = "data"
2424NPROC = 2
2525MTHREAD = 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
3838NX = 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 )
You can’t perform that action at this time.
0 commit comments