test: cover channel outlet clamp and damping controls
This commit is contained in:
@@ -13,9 +13,11 @@ from .test_numerical_operators import compile_run
|
||||
|
||||
@pytest.mark.parametrize("shift", [0, 1])
|
||||
@pytest.mark.parametrize("profile", [0, 1])
|
||||
def test_actual_kernel_uniform_parity(tmp_path, shift, profile):
|
||||
@pytest.mark.parametrize("clamp,damping", [(1, ".5f"), (0, ".8f")])
|
||||
def test_actual_kernel_uniform_parity(tmp_path, shift, profile, clamp, damping):
|
||||
"""Nonuniform ghosts, corners, top wall, global profile and outlet halo donor."""
|
||||
defines = dict(USE_DDF_SHIFTING=shift, INLET_PROFILE=profile)
|
||||
defines = dict(USE_DDF_SHIFTING=shift, INLET_PROFILE=profile,
|
||||
OUTLET_BACKFLOW_CLAMP=clamp, OUTLET_SRT_NEQ_DAMP=damping)
|
||||
uniform = np.array(compile_run(tmp_path, "channel_root.cpp", dict(
|
||||
defines, UNIFORM=1, NX=24, NY=20)), np.float32)
|
||||
assert np.isfinite(uniform).all()
|
||||
|
||||
Reference in New Issue
Block a user