Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove and rename duplicate stencils #332

Merged
merged 17 commits into from
Dec 21, 2023
Prev Previous commit
Next Next commit
fix refernce test
huppd committed Dec 20, 2023
commit 873aac2e5a7fb3b5144b3c9c4bd877574560ec9b
Original file line number Diff line number Diff line change
@@ -23,6 +23,11 @@
from icon4py.model.common.type_alias import vpfloat, wpfloat


def compute_contravariant_correction_numpy(
vn: np.array, ddxn_z_full: np.array, ddxt_z_full: np.array, vt: np.array
) -> np.array:
z_w_concorr_me = vn * ddxn_z_full + vt * ddxt_z_full
return z_w_concorr_me
class TestMoSolveNonhydroStencil35(StencilTest):
PROGRAM = compute_contravariant_correction
OUTPUTS = ("z_w_concorr_me",)
@@ -36,7 +41,7 @@ def reference(
vt: np.array,
**kwargs,
) -> dict:
z_w_concorr_me = vn * ddxn_z_full + vt * ddxt_z_full
z_w_concorr_me = compute_contravariant_correction_numpy(vn, ddxn_z_full, ddxt_z_full, vt)
return dict(z_w_concorr_me=z_w_concorr_me)

@pytest.fixture