Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
a460d50
add first batch of program tests to continuous benchmarking
DropD Sep 4, 2025
84abc04
fix static params for apply_diffusion_to_vn
DropD Sep 4, 2025
50e8365
improve static params for apply_diffusion_to_w_... test
DropD Sep 5, 2025
ad8d449
Merge branch 'main' into expand-continuous-benchmarking
DropD Sep 5, 2025
aacd35b
add static params and remove indirectly used prog from benchmarking
DropD Sep 5, 2025
d042c98
update dockerfile to trigger a rebuild with newer bencher CLI
DropD Sep 5, 2025
ba94c10
add compute_derived_horizontal_winds_... to benchmarking
DropD Sep 12, 2025
4571a34
Merge branch 'main' into expand-continuous-benchmarking
DropD Sep 12, 2025
3dcdd34
temporarily remove failing parametrization case.
DropD Sep 16, 2025
367ba1f
add compute_advection_in_vertical... program
DropD Sep 16, 2025
c4b33c3
add benchmarking for advection_in_horizontal... program
DropD Sep 16, 2025
bdc3296
add benchmarking for compute_perturbed... program
DropD Sep 16, 2025
5836fbf
add benchmarking for 'compute_hydrostatic...' program
DropD Sep 16, 2025
7d041d5
fix precommit messages
DropD Sep 16, 2025
a30e5da
fix a bug in grid-savepoint reading during driver initialization (#866)
OngChia Sep 12, 2025
ca2f4f2
Fix cupy cfl reduction performance by raveling the array (#872)
havogt Sep 12, 2025
36f5583
Update to GT4Py v1.0.9 (dace fix) (#840)
philip-paul-mueller Sep 12, 2025
510dfae
delete outdated top level README.md from tools (#870)
halungge Sep 12, 2025
3824293
Bump actions/setup-python from 5 to 6 (#863)
dependabot[bot] Sep 15, 2025
1c899eb
Clean up 41_to_60 for better performance (#784)
iomaganaris Sep 15, 2025
937128b
Fix memory allocator for zero fields in velocity advection tests (#874)
edopao Sep 15, 2025
c1bfd1c
Add dace backend to default CI pipeline (#822)
edopao Sep 15, 2025
02d031f
Merge branch 'main' into expand-continuous-benchmarking
DropD Sep 18, 2025
bddb09d
add benchmarking for 'vertically_implicit_solver...' program
DropD Sep 18, 2025
48c9b08
avoid dace backend corner cases in stencil tests
DropD Sep 19, 2025
4ea9499
Merge branch 'main' into expand-continuous-benchmarking
DropD Sep 19, 2025
70e1720
add benchmarking for 'interpolate_rho_theta...' program
DropD Sep 19, 2025
1479e80
fix typing for static variants in stencil tests
DropD Sep 19, 2025
cf730e8
add benchmarking for 'apply_divergence_damping...' program
DropD Sep 19, 2025
47d647a
add benchmarking for 'vertically_implicit...corrector...' program
DropD Sep 19, 2025
3289b38
add benchmarking for 'init_cell...' program
DropD Sep 19, 2025
f3921e7
add benchmarking for 'update_mass_flux_weighted' program
DropD Sep 19, 2025
6368b76
Merge branch 'main' into expand-continuous-benchmarking
iomaganaris Sep 22, 2025
9fd8a3f
Make fixture names readable
iomaganaris Sep 29, 2025
1f88e8f
Make variable options usable with pytest -k
iomaganaris Sep 29, 2025
123b25b
Print gt4py timers in a nice way (along with pytest timers)
iomaganaris Sep 30, 2025
ab89a17
Merge remote-tracking branch 'origin/main' into expand-continuous-ben…
iomaganaris Sep 30, 2025
66855eb
Disable verification if --benchmark_only is set
iomaganaris Oct 1, 2025
d39c9f1
Clean gtx_metrics after the verification
iomaganaris Oct 1, 2025
4d3a6d6
Get rid of the first slow iterations
iomaganaris Oct 1, 2025
8ad81e4
Merge remote-tracking branch 'origin/main' into expand-continuous-ben…
iomaganaris Oct 1, 2025
1129847
Added a few fixture ids
iomaganaris Oct 1, 2025
c6de2d1
Add at_first_substep to compile-time constants in vertically_implicit…
iomaganaris Oct 7, 2025
171ffd7
Remove debug print of gt4py timers
iomaganaris Oct 8, 2025
2728bfd
Fix metrics with new gt4py
iomaganaris Oct 8, 2025
18e3817
Find a way to inherit from existing StencilTests
iomaganaris Oct 10, 2025
c525572
Enable inheritance from classes of benchmarks and apply to TestApplyD…
iomaganaris Oct 13, 2025
534d31d
Use subclasses for continuous_benchmarking
iomaganaris Oct 13, 2025
6ee0419
Replace UUID of test with class
iomaganaris Oct 13, 2025
442555b
Merge branch 'main' into expand-continuous-benchmarking
iomaganaris Oct 13, 2025
da6c9eb
Remove TODO
iomaganaris Oct 13, 2025
33149f3
Replace skip_verification with benchmark_only
iomaganaris Oct 13, 2025
01d87c3
Modifications in TestComputeThetaRhoPressureGradientAndUpdateVn
kotsaloscv Oct 14, 2025
62ff36c
Modifications in TestComputeThetaRhoPressureGradientAndUpdateVn
kotsaloscv Oct 14, 2025
f49b74b
Avoid warning: PytestCollectionWarning: cannot collect 'test_*' becau…
iomaganaris Oct 15, 2025
c755cd8
Fix formatting
iomaganaris Oct 15, 2025
f1a627d
Skip continuous benchmarking tests if grid is not icon_benchmark
iomaganaris Oct 15, 2025
1e092ba
Fixing tests
iomaganaris Oct 15, 2025
28d695a
Fix TestFusedVelocityAdvectionStencilVMomentumAndContravariant
iomaganaris Oct 15, 2025
9cd760a
Skip validation of TestComputeThetaRhoPressureGradientAndUpdateVn
iomaganaris Oct 15, 2025
ad34020
Remove unrelated changes
iomaganaris Oct 15, 2025
2481f55
Merge remote-tracking branch 'origin/main' into expand-continuous-ben…
iomaganaris Oct 15, 2025
efa6df4
Trying to fix test_TestComputeDerivedHorizontalWindsAndKEAndHorizonta…
iomaganaris Oct 15, 2025
217333f
Remove unnecessary UUID
iomaganaris Oct 15, 2025
3dc8b0e
Merge branch 'main' into expand-continuous-benchmarking
DropD Oct 16, 2025
420fe3a
Merge branch 'main' into expand-continuous-benchmarking
iomaganaris Oct 22, 2025
d018cae
Merge branch 'main' into expand-continuous-benchmarking
edopao Oct 23, 2025
05968bb
renaming: TestCBApplyDiffusionToVn to TestApplyDiffusionToVnContinuou…
kotsaloscv Oct 30, 2025
eb720fe
Merge branch 'main' into expand-continuous-benchmarking
DropD Nov 4, 2025
f0e6f53
Merge remote-tracking branch 'origin/main' into expand-continuous-ben…
iomaganaris Nov 5, 2025
36f54e8
Fix issue with test_grid
iomaganaris Nov 5, 2025
94021c0
Fix data_allocations import in test_calculate_horizontal_gradients_fo…
iomaganaris Nov 6, 2025
4407d5c
Increase DaCe bencher time limit
iomaganaris Nov 6, 2025
0e26652
Only run none and compile_time_domain in bencher
iomaganaris Nov 6, 2025
565e350
Revert changes in slurm timeout
iomaganaris Nov 6, 2025
05a7fbe
Allow TestComputeThetaRhoPressureGradientAndUpdateVnContinuousBenchma…
iomaganaris Nov 6, 2025
e96911c
Merge remote-tracking branch 'origin/main' into expand-continuous-ben…
iomaganaris Nov 6, 2025
6c3eccb
Profile only compile_time_domain in bencher
iomaganaris Nov 7, 2025
d1c6a9e
Use proper values for TestComputeThetaRhoPressureGradientAndUpdateVnC…
iomaganaris Nov 7, 2025
4d6e2d0
Fix ComputeThetaRhoPressureGradientAndUpdateVn stencil test
iomaganaris Nov 10, 2025
6e60f81
Remove irrelevant comment
iomaganaris Nov 10, 2025
edd7e4f
Fix TestApplyDiffusionToWAndComputeHorizontalGradientsForTurbulence
iomaganaris Nov 10, 2025
4239768
Use the test functions of StencilTest only and replace static_variant…
iomaganaris Nov 10, 2025
bd03599
Add apply_extra_diffusion_on_vn
iomaganaris Nov 12, 2025
f4f35be
Merge branch 'main' into expand-continuous-benchmarking
iomaganaris Nov 13, 2025
91e6e3f
Removed ContinuousBenchmarking flavors of simple stencil tests
iomaganaris Nov 14, 2025
fa5cd9f
Clean up TestApplyDivergenceDampingAndUpdateVn
iomaganaris Nov 14, 2025
20def74
Fix end_index_of_damping_layer value in TestFusedVelocityAdvectionSte…
iomaganaris Nov 14, 2025
69fb25b
Cleaned up TestComputeDerivedHorizontalWindsAndKEAndHorizontalAdvecti…
iomaganaris Nov 14, 2025
a67afb9
Cleaned up TestComputePerturbedQuantitiesAndInterpolation
iomaganaris Nov 14, 2025
9f34e1c
Clean up TestComputeThetaRhoPressureGradientAndUpdateVn
iomaganaris Nov 14, 2025
5e77709
Fix values of end_index_of_damping_layer and nflat_gradp
iomaganaris Nov 14, 2025
748cd67
Clean up vertically implicit solvers
iomaganaris Nov 14, 2025
1303aa5
Set DEFAULT_NUM_LEVELS due to nflat_gradp being 34
iomaganaris Nov 14, 2025
50d3f73
Allow verification with -m continuous_benchmarking
iomaganaris Nov 14, 2025
cca59c7
Make formating happy
iomaganaris Nov 14, 2025
d116b8b
Added comments regarding vertical level values related to benchmarks …
iomaganaris Nov 14, 2025
4a66e4a
Use pytest-pedantic to set the number of warmup iterations and the it…
iomaganaris Nov 14, 2025
4106772
Replace in the json file generated by pytest benchmarks the values re…
iomaganaris Nov 14, 2025
e9bacd3
Revert changes in stencil test class initialization
iomaganaris Nov 14, 2025
e9294c2
Make formatting happy
iomaganaris Nov 14, 2025
ec15965
Use necessary parameters for stencil testing and benchmarking
iomaganaris Nov 14, 2025
568f4eb
Make parameters reasonable for testing and benchmarking
iomaganaris Nov 14, 2025
9e07749
Remove unnecessary imports
iomaganaris Nov 14, 2025
d0baf83
Fix missing ]
iomaganaris Nov 14, 2025
4d8ddd8
Allow [ and ] inside params of _name_from_fullname_pattern
iomaganaris Nov 14, 2025
e7ccfad
Replace min and max from gt4py timers in json benchmark output
iomaganaris Nov 14, 2025
81a13f5
Merge branch 'main' into expand-continuous-benchmarking
iomaganaris Nov 14, 2025
5116a28
SKip test that fails with embedded
iomaganaris Nov 14, 2025
edf9aba
Merge branch 'main' into expand-continuous-benchmarking
iomaganaris Nov 17, 2025
8b0fd6f
Trying to increase github actions timeout
iomaganaris Nov 17, 2025
b01b5d8
Trying running the stencil test with only 1 process
iomaganaris Nov 17, 2025
44d1eee
Fix TestCalculateNabla2AndSmagCoefficientsForVn
iomaganaris Nov 17, 2025
d20f088
Fix memory leaks and unnecessary reference in StencilTests
iomaganaris Nov 17, 2025
51e9cf8
Merge branch 'main' into expand-continuous-benchmarking
iomaganaris Nov 17, 2025
3217505
Revert number of process of github actions to auto
iomaganaris Nov 17, 2025
cd7c23a
Fix tests that don't have static params
iomaganaris Nov 17, 2025
ad2eddd
Fix name of test
iomaganaris Nov 17, 2025
5000d77
Fixed test without scope class
iomaganaris Nov 17, 2025
c71d029
Fix TestComputeDerivedHorizontalWindsAndKEAndHorizontalAdvectionofWAn…
iomaganaris Nov 18, 2025
6987689
Fix vertically implicit dycore corrector because field fails if it's …
iomaganaris Nov 18, 2025
fe271ad
Merge branch 'main' into expand-continuous-benchmarking
iomaganaris Nov 18, 2025
f3538c5
Revert "Fix memory leaks and unnecessary reference in StencilTests"
iomaganaris Nov 19, 2025
424919e
Revert "Fix tests that don't have static params"
iomaganaris Nov 19, 2025
c8fc311
Merge remote-tracking branch 'origin/main' into expand-continuous-ben…
iomaganaris Nov 19, 2025
ef8708d
Fix TestComputeDerivedHorizontalWindsAndKEAndHorizontalAdvectionofWAn…
iomaganaris Nov 20, 2025
fcf873c
Added class TestComputeAveragedVnAndFluxesAndPrepareTracerAdvection
iomaganaris Nov 20, 2025
a974f65
Added TestComputeHorizontalVelocityQuantitiesAndFluxes
iomaganaris Nov 20, 2025
c757eac
Make formatting happy
iomaganaris Nov 20, 2025
b4f73b1
Fix memory leaks and unnecessary reference in StencilTests
iomaganaris Nov 17, 2025
bf8ed3b
Improve handling of input_data in stencil tests
iomaganaris Nov 20, 2025
5962fcf
Merge remote-tracking branch 'origin/main' into free_stencil_test_fix…
iomaganaris Dec 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def reference(
rhodz_ast2 = np.maximum(0.1 * p_rhodz_new, p_rhodz_new) - p_dtime * tmp
return dict(rhodz_ast2=rhodz_ast2)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid) -> dict:
p_rhodz_new = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
p_mflx_contra_v = data_alloc.random_field(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def reference(

return dict(p_tracer_new=p_tracer_new)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
p_tracer_now = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
p_grf_tend_tracer = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def reference(

return dict(rhodz_ast2=rhodz_ast2)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
rhodz_ast = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
p_mflx_contra_v = data_alloc.random_field(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def reference(
p_out_e = (z_tracer_mflx_1_dsl + z_tracer_mflx_2_dsl) / float(2)
return dict(p_out_e=p_out_e)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
z_tracer_mflx_1_dsl = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
z_tracer_mflx_2_dsl = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def reference(
p_out_e = (z_tracer_mflx_1_dsl + z_tracer_mflx_2_dsl + z_tracer_mflx_3_dsl) / float(3)
return dict(p_out_e=p_out_e)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
z_tracer_mflx_1_dsl = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
z_tracer_mflx_2_dsl = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def reference(
z_tracer_min=z_tracer_min,
)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid) -> dict:
geofac_div = data_alloc.random_field(grid, dims.CellDim, dims.C2EDim)
p_rhodz_now = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def reference(
p_distv_bary_2=p_distv_bary_2,
)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid) -> dict:
p_vn = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
p_vt = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def reference(
p_distv_bary_2=p_distv_bary_2,
)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid) -> dict:
p_vn = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
p_vt = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def reference(
"p_coords_dreg_v_4_lat_dsl": p_coords_dreg_v_4_lat_dsl,
}

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid) -> dict:
p_vn = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
p_vt = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def reference(

return dict(lvn_sys_pos=lvn_sys_pos)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
p_vn = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
tangent_orientation = data_alloc.random_field(grid, dims.EdgeDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def reference(

return dict(opt_famask_dsl=opt_famask_dsl)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid) -> dict:
p_vn = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
p_vt = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def reference(

return dict(p_out_e_hybrid_2=p_out_e_hybrid_2)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid) -> dict:
p_out_e_hybrid_2 = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
p_mass_flx_e = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def reference(

return dict(p_out_e=p_out_e)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
z_lsq_coeff_1 = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
z_lsq_coeff_2 = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def reference(

return dict(p_out_e=p_out_e)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
z_lsq_coeff_1 = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
z_lsq_coeff_2 = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def reference(

return dict(r_m=r_m)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid) -> dict:
geofac_div = data_alloc.random_field(grid, dims.CellDim, dims.C2EDim)
p_cc = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def reference(
z_a1 = p_cc - 0.5 * (z_face_up + z_face_low)
return dict(z_delta_q=z_delta_q, z_a1=z_a1)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
z_face_up = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
z_face_low = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def reference(
p_face[:, 1:] = np.where((k[1:] == elevp1), p_cc[:, :-1], p_face[:, 1:])
return dict(p_face=p_face)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
p_cc = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
p_cellhgt_mc_now = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def reference(
)
return dict(p_face=p_face)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
p_face = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
p_cc = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def reference(
)
return dict(p_face=p_face)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
p_cc = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
p_cellhgt_mc_now = data_alloc.random_field(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def reference(
z_slope = np.where(k[1:-1] < elev, z_slope_a, z_slope_b)
return dict(z_slope=z_slope)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
z_slope = data_alloc.zero_field(grid, dims.CellDim, dims.KDim)
p_cc = data_alloc.random_field(grid, dims.CellDim, dims.KDim, extend={dims.KDim: 1})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def reference(

return dict(opt_ddt_tracer_adv=opt_ddt_tracer_adv)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
p_tracer_now = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
p_tracer_new = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def reference(
l_limit = np.where(np.abs(z_delta) < -1 * z_a6i, 1, 0)
return dict(l_limit=l_limit)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
p_cc = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
p_face = data_alloc.random_field(grid, dims.CellDim, dims.KDim, extend={dims.KDim: 1})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def reference(
)
return dict(p_upflux=p_upflux)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
p_cc = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
p_mflx_contra_v = data_alloc.random_field(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def reference(
z_tracer_new_dsl=z_tracer_new_dsl,
)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
p_mass_flx_e = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
geofac_div = data_alloc.random_field(grid, dims.CellDim, dims.C2EDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def reference(
) / rhodz_new
return dict(tracer_new_hor=tracer_new_hor)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
p_mflx_tracer_h = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
deepatmo_divh = data_alloc.random_field(grid, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def reference(

return dict(tracer_new=tracer_new)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
tracer_now = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
rhodz_now = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def reference(
)
return dict(p_face_up=q_face_up, p_face_low=q_face_low)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
l_limit = data_alloc.random_mask(grid, dims.CellDim, dims.KDim, dtype=gtx.int32)
p_cc = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def reference(
slope = np.where(z_slope[:, 1:-1] >= 0.0, slope_l, -slope_l)
return dict(z_slope=slope)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
p_cc = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
z_slope = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def reference(
z_tracer_min=z_tracer_min_out,
)

@pytest.fixture()
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
hi_bound, lo_bound = 3, 1
refin_ctrl = data_alloc.constant_field(grid, 2, dims.CellDim, dtype=gtx.int32)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1470,7 +1470,7 @@ def reference(
dreg_patch2_4_lat_vmask=dreg_patch2_4_lat_vmask,
)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid) -> dict:
famask_int = data_alloc.random_mask(grid, dims.EdgeDim, dims.KDim, dtype=gtx.int32)
p_vn = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def reference(
p_dreg_area_out=p_dreg_area_out,
)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
p_coords_dreg_v_1_x = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
p_coords_dreg_v_2_x = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def reference(
p_dreg_area=p_dreg_area,
)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
famask_int = data_alloc.constant_field(grid, 1, dims.EdgeDim, dims.KDim, dtype=gtx.int32)
p_coords_dreg_v_1_x = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def reference(
p_coeff_10_dsl=p_coeff_10_dsl,
)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
p_cc = data_alloc.random_field(grid, dims.CellDim, dims.KDim)
lsq_pseudoinv_1_field = data_alloc.random_field(grid, dims.CellDim, dims.C2E2C2E2CDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def reference(

return dict(theta_v=theta_v, exner=exner)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid):
pytest.xfail(
"stencil segfaults with GTFN and it is not used in diffusion: it is missing an if condition"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def reference(

return dict(vn=vn)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
u_vert = data_alloc.random_field(grid, dims.VertexDim, dims.KDim)
v_vert = data_alloc.random_field(grid, dims.VertexDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def reference(
out_dwdy[subset] = dwdy[subset]
return dict(w=out_w, dwdx=out_dwdx, dwdy=out_dwdy)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
nrdmax = 13
cell_domain = h_grid.domain(dims.CellDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class TestApplyNabla2AndNabla4GlobalToVn(StencilTest):
PROGRAM = apply_nabla2_and_nabla4_global_to_vn
OUTPUTS = ("vn",)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid):
area_edge = random_field(grid, dims.EdgeDim, dtype=wpfloat)
kh_smag_e = random_field(grid, dims.EdgeDim, dims.KDim, dtype=vpfloat)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class TestApplyNabla2AndNabla4ToVn(StencilTest):
PROGRAM = apply_nabla2_and_nabla4_to_vn
OUTPUTS = ("vn",)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid):
area_edge = random_field(grid, dims.EdgeDim, dtype=wpfloat)
kh_smag_e = random_field(grid, dims.EdgeDim, dims.KDim, dtype=vpfloat)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class TestApplyNabla2ToVnInLateralBoundary(StencilTest):
PROGRAM = apply_nabla2_to_vn_in_lateral_boundary
OUTPUTS = ("vn",)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid):
fac_bdydiff_v = wpfloat("5.0")
z_nabla2_e = random_field(grid, dims.EdgeDim, dims.KDim, dtype=wpfloat)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def reference(
w = apply_nabla2_to_w_numpy(connectivities, area, z_nabla2_c, geofac_n2s, w, diff_multfac_w)
return dict(w=w)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid):
area = random_field(grid, dims.CellDim, dtype=wpfloat)
z_nabla2_c = random_field(grid, dims.CellDim, dims.KDim, dtype=vpfloat)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class TestApplyNabla2ToWInUpperDampingLayer(StencilTest):
PROGRAM = apply_nabla2_to_w_in_upper_damping_layer
OUTPUTS = ("w",)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid):
w = random_field(grid, dims.CellDim, dims.KDim, dtype=wpfloat)
diff_multfac_n2w = random_field(grid, dims.KDim, dtype=wpfloat)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def reference(
)
return dict(div_ic=div_ic, hdef_ic=hdef_ic)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid):
wgtfac_c = random_field(grid, dims.CellDim, dims.KDim, dtype=vpfloat)
div = random_field(grid, dims.CellDim, dims.KDim, dtype=vpfloat)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def reference(
)
return dict(dwdx=dwdx, dwdy=dwdy)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid):
w = data_alloc.random_field(grid, dims.CellDim, dims.KDim, dtype=wpfloat)
geofac_grg_x = data_alloc.random_field(grid, dims.CellDim, dims.C2E2CODim, dtype=wpfloat)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def reference(

return dict(kh_smag_e=kh_smag_e_out, kh_smag_ec=kh_smag_ec_out, z_nabla2_e=z_nabla2_e_out)

@pytest.fixture
@pytest.fixture(scope="class")
def input_data(self, grid: base.Grid) -> dict:
u_vert = data_alloc.random_field(grid, dims.VertexDim, dims.KDim, dtype=ta.vpfloat)
v_vert = data_alloc.random_field(grid, dims.VertexDim, dims.KDim, dtype=ta.vpfloat)
Expand Down
Loading