Skip to content

Commit 35fbc7e

Browse files
Dimitrios AdamDimitrios Adam
authored andcommitted
White Space3
1 parent 9123f8b commit 35fbc7e

File tree

1 file changed

+32
-11
lines changed

1 file changed

+32
-11
lines changed

toolchain/mfc/test/cases.py

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,22 @@ def alter_igr():
170170

171171
stack.pop()
172172

173+
def alter_muscl():
174+
for muscl_order in [1, 2]:
175+
stack.push(f"muscl_order={muscl_order}", {'muscl_order': muscl_order, 'recon_type':2, 'weno_order':0})
176+
177+
if muscl_order == 1:
178+
for int_comp in ["T", "F"]:
179+
cases.append(define_case_d(stack, f"int_comp={int_comp}", {'int_comp': int_comp}))
180+
elif muscl_order == 2:
181+
for int_comp in ["T", "F"]:
182+
stack.push(f"int_comp={int_comp}", {'int_comp': int_comp})
183+
cases.append(define_case_d(stack, f"muscl_lim=1", {'muscl_lim': 1}))
184+
stack.pop()
185+
for muscl_lim in [2,3,4,5]:
186+
cases.append(define_case_d(stack, f"muscl_lim={muscl_lim}", {'muscl_lim': muscl_lim}))
187+
stack.pop()
188+
173189
def alter_riemann_solvers(num_fluids):
174190
for riemann_solver in [1, 2]:
175191
stack.push(f"riemann_solver={riemann_solver}", {'riemann_solver': riemann_solver})
@@ -346,9 +362,10 @@ def alter_3d():
346362
def alter_ppn(dimInfo):
347363
if len(dimInfo[0]) == 3:
348364
cases.append(define_case_d(stack, '2 MPI Ranks', {'m': 29, 'n': 29, 'p': 49}, ppn=2))
365+
cases.append(define_case_d(stack, '2 MPI Ranks -> RDMA MPI', {'m': 29, 'n': 29, 'p': 49, 'rdma_mpi': 'T'}, ppn=2))
349366
else:
350367
cases.append(define_case_d(stack, '2 MPI Ranks', {}, ppn=2))
351-
368+
cases.append(define_case_d(stack, '2 MPI Ranks -> RDMA MPI', {'rdma_mpi': 'T'}, ppn=2))
352369

353370
def alter_ib(dimInfo, six_eqn_model=False):
354371
for slip in [True, False]:
@@ -676,17 +693,17 @@ def alter_mixlayer_perturb(dimInfo):
676693
'patch_icpp(1)%vel(1)': 1.0, 'patch_icpp(1)%vel(2)': 0.0, 'patch_icpp(1)%vel(3)': 0.0,
677694
'patch_icpp(1)%pres': 17.8571428571, 'patch_icpp(1)%alpha_rho(1)': 1.0, 'patch_icpp(1)%alpha(1)': 1.0,
678695
'patch_icpp(1)%r0': -1e6, 'patch_icpp(1)%v0': -1e6,
679-
'patch_icpp(2)%geometry': -100,
696+
'patch_icpp(2)%geometry': -100,
680697
'patch_icpp(2)%x_centroid': -1e6, 'patch_icpp(2)%length_x': -1e6,
681-
'patch_icpp(2)%y_centroid': -1e6, 'patch_icpp(2)%length_y': -1e6,
682-
'patch_icpp(2)%z_centroid': -1e6, 'patch_icpp(2)%length_z': -1e6,
683-
'patch_icpp(2)%vel(1)': -1e6, 'patch_icpp(2)%vel(2)': -1e6, 'patch_icpp(2)%vel(3)': -1e6,
698+
'patch_icpp(2)%y_centroid': -1e6, 'patch_icpp(2)%length_y': -1e6,
699+
'patch_icpp(2)%z_centroid': -1e6, 'patch_icpp(2)%length_z': -1e6,
700+
'patch_icpp(2)%vel(1)': -1e6, 'patch_icpp(2)%vel(2)': -1e6, 'patch_icpp(2)%vel(3)': -1e6,
684701
'patch_icpp(2)%r0': -1e6, 'patch_icpp(2)%v0': -1e6,
685-
'patch_icpp(3)%geometry': -100,
702+
'patch_icpp(3)%geometry': -100,
686703
'patch_icpp(3)%x_centroid': -1e6, 'patch_icpp(3)%length_x': -1e6,
687-
'patch_icpp(3)%y_centroid': -1e6, 'patch_icpp(3)%length_y': -1e6,
688-
'patch_icpp(3)%z_centroid': -1e6, 'patch_icpp(3)%length_z': -1e6,
689-
'patch_icpp(3)%vel(1)': -1e6, 'patch_icpp(3)%vel(2)': -1e6, 'patch_icpp(3)%vel(3)': -1e6,
704+
'patch_icpp(3)%y_centroid': -1e6, 'patch_icpp(3)%length_y': -1e6,
705+
'patch_icpp(3)%z_centroid': -1e6, 'patch_icpp(3)%length_z': -1e6,
706+
'patch_icpp(3)%vel(1)': -1e6, 'patch_icpp(3)%vel(2)': -1e6, 'patch_icpp(3)%vel(3)': -1e6,
690707
'patch_icpp(3)%r0': -1e6, 'patch_icpp(3)%v0': -1e6
691708
}))
692709

@@ -936,6 +953,7 @@ def foreach_dimension():
936953
alter_bcs(dimInfo)
937954
alter_grcbc(dimInfo)
938955
alter_weno(dimInfo)
956+
alter_muscl()
939957
alter_num_fluids(dimInfo)
940958
if len(dimInfo[0]) == 2:
941959
alter_2d()
@@ -975,11 +993,14 @@ def foreach_example():
975993
"2D_lagrange_bubblescreen",
976994
"3D_lagrange_bubblescreen", "2D_triple_point",
977995
"1D_shuosher_analytical",
978-
"1D_titarevtorro_analytical",
996+
"1D_titarevtorro_analytical",
979997
"2D_acoustic_pulse_analytical",
980998
"2D_isentropicvortex_analytical",
981999
"2D_zero_circ_vortex_analytical",
982-
"3D_TaylorGreenVortex_analytical"]
1000+
"3D_TaylorGreenVortex_analytical",
1001+
"3D_IGR_TaylorGreenVortex_nvidia",
1002+
"2D_backward_facing_step",
1003+
"2D_forward_facing_step"]
9831004
if path in casesToSkip:
9841005
continue
9851006
name = f"{path.split('_')[0]} -> Example -> {'_'.join(path.split('_')[1:])}"

0 commit comments

Comments
 (0)