Skip to content

Commit 7d8f81d

Browse files
committed
Apply ruff format
1 parent 39c118b commit 7d8f81d

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

tests/MMS/spatial/finite-volume/mms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
v = fv / f
3333

3434
# Substitute back to get input y coordinates
35-
replace = [ (metric.y, y*Ly/(2*pi) ) ]
35+
replace = [(metric.y, y * Ly / (2 * pi))]
3636

3737

3838
def Grad2_par2(f: Expr) -> Expr:

tests/MMS/spatial/finite-volume/runtest

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,18 @@ OPERATORS = {
2222
"FV_Div_par_MC": 1.5,
2323
"FV_Div_par_mod_MC": 1.5,
2424
"FV_Div_par_fvv_MC": 1.5,
25-
2625
"FV_Div_par_Upwind": 1,
2726
"FV_Div_par_mod_Upwind": 1,
2827
"FV_Div_par_fvv_Upwind": 1,
29-
3028
"FV_Div_par_Fromm": 1.5,
3129
"FV_Div_par_mod_Fromm": 1.5,
3230
"FV_Div_par_fvv_Fromm": 1.5,
33-
3431
"FV_Div_par_MinMod": 1.5,
3532
"FV_Div_par_mod_MinMod": 1.5,
3633
"FV_Div_par_fvv_MinMod": 1.5,
37-
3834
"FV_Div_par_Superbee": 1.5,
3935
"FV_Div_par_mod_Superbee": 1.5,
4036
"FV_Div_par_fvv_Superbee": 1.5,
41-
4237
"FV_Div_par_K_Grad_par": 2,
4338
"FV_Div_par_K_Grad_par_mod": 2,
4439
}
@@ -131,9 +126,7 @@ def test_fv_operators() -> bool:
131126

132127
final_errors = transpose(all_errors)
133128
for operator, order in OPERATORS.items():
134-
success = assert_convergence(
135-
final_errors[operator]["l_2"], dx, operator, order
136-
)
129+
success = assert_convergence(final_errors[operator]["l_2"], dx, operator, order)
137130
if not success:
138131
failures.append(operator)
139132

0 commit comments

Comments
 (0)