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

Fix greenline dependencies #327

Merged
merged 10 commits into from
Dec 8, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import logging
from typing import Final, Optional

import numpy as np
from gt4py.next import as_field
from gt4py.next.common import Field
from gt4py.next.ffront.fbuiltins import int32
Expand Down Expand Up @@ -138,11 +137,13 @@
from icon4py.model.atmosphere.dycore.mo_solve_nonhydro_stencil_68 import (
mo_solve_nonhydro_stencil_68,
)
from icon4py.model.atmosphere.dycore.state_utils.diagnostic_state import DiagnosticStateNonHydro
from icon4py.model.atmosphere.dycore.state_utils.interpolation_state import InterpolationState
from icon4py.model.atmosphere.dycore.state_utils.metric_state import MetricStateNonHydro
from icon4py.model.atmosphere.dycore.state_utils.nh_constants import NHConstants
from icon4py.model.atmosphere.dycore.state_utils.prep_adv_state import PrepAdvection
from icon4py.model.atmosphere.dycore.state_utils.states import (
DiagnosticStateNonHydro,
InterpolationState,
MetricStateNonHydro,
PrepAdvection,
)
from icon4py.model.atmosphere.dycore.state_utils.utils import (
_allocate,
_allocate_indices,
Expand Down Expand Up @@ -493,6 +494,10 @@ def time_step(
rd_o_cvd=self.params.rd_o_cvd,
rd_o_p0ref=self.params.rd_o_p0ref,
offset_provider={},
horizontal_start=0,
horizontal_end=end_cell_end,
vertical_start=0,
vertical_end=self.grid.num_levels,
)

mo_solve_nonhydro_stencil_67.with_backend(backend)(
Expand Down Expand Up @@ -659,7 +664,7 @@ def run_predictor_step(

if self.config.igradp_method == 3:
nhsolve_prog.predictor_stencils_4_5_6.with_backend(backend)(
wgtfacq_c_dsl=self.metric_state_nonhydro.wgtfacq_c_dsl,
wgtfacq_c_dsl=self.metric_state_nonhydro.wgtfacq_c,
z_exner_ex_pr=self.z_exner_ex_pr,
z_exner_ic=self.z_exner_ic,
wgtfac_c=self.metric_state_nonhydro.wgtfac_c,
Expand Down Expand Up @@ -704,7 +709,7 @@ def run_predictor_step(

# Perturbation theta at top and surface levels
nhsolve_prog.predictor_stencils_11_lower_upper.with_backend(backend)(
wgtfacq_c_dsl=self.metric_state_nonhydro.wgtfacq_c_dsl,
wgtfacq_c_dsl=self.metric_state_nonhydro.wgtfacq_c,
z_rth_pr=self.z_rth_pr_2,
theta_ref_ic=self.metric_state_nonhydro.theta_ref_ic,
z_theta_v_pr_ic=self.z_theta_v_pr_ic,
Expand Down Expand Up @@ -1069,7 +1074,7 @@ def run_predictor_step(
vn_ie=diagnostic_state_nh.vn_ie,
z_vt_ie=z_fields.z_vt_ie,
z_kin_hor_e=z_fields.z_kin_hor_e,
wgtfacq_e_dsl=self.metric_state_nonhydro.wgtfacq_e_dsl,
wgtfacq_e_dsl=self.metric_state_nonhydro.wgtfacq_e,
k_field=self.k_field,
nlev=self.grid.num_levels,
horizontal_start=start_edge_lb_plus4,
Expand All @@ -1083,7 +1088,7 @@ def run_predictor_step(
e_bln_c_s=self.interpolation_state.e_bln_c_s,
z_w_concorr_me=self.z_w_concorr_me,
wgtfac_c=self.metric_state_nonhydro.wgtfac_c,
wgtfacq_c_dsl=self.metric_state_nonhydro.wgtfacq_c_dsl,
wgtfacq_c_dsl=self.metric_state_nonhydro.wgtfacq_c,
w_concorr_c=diagnostic_state_nh.w_concorr_c,
k_field=self.k_field,
nflatlev_startindex_plus1=int32(self.vertical_params.nflatlev + 1),
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading