Skip to content

Commit

Permalink
Fix some errors in orchestration decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
edopao committed Jan 13, 2025
1 parent d15c2f6 commit f0eca78
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def test_verify_diffusion_init_against_savepoint(
(dt_utils.GLOBAL_EXPERIMENT, "2000-01-01T00:00:02.000", "2000-01-01T00:00:02.000"),
],
)
@pytest.mark.parametrize("ndyn_substeps, orchestration", [(2, False) , (2, True)])
@pytest.mark.parametrize("ndyn_substeps, orchestration", [(2, False), (2, True)])
def test_run_diffusion_single_step(
savepoint_diffusion_init,
savepoint_diffusion_exit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -638,8 +638,8 @@ def _concretize_symbols_for_dace_structure(dace_cls, orig_cls):

return {
**{
"CellDim_sym": grid.offset_providers["C2E"].table.shape[0],
"EdgeDim_sym": grid.offset_providers["E2C"].table.shape[0],
"CellDim_sym": grid.offset_providers["C2E"].ndarray.shape[0],
"EdgeDim_sym": grid.offset_providers["E2C"].ndarray.shape[0],
"KDim_sym": grid.num_levels,
},
**concretize_symbols_for_dace_structure,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def __sdfg__(self, *args, **kwargs) -> dace.SDFG:
sdfg = dace.SDFG("DummyNestedSDFG")
state = sdfg.add_state()

sdfg.add_scalar(name="__return", dtype=dace.int32)
sdfg.add_array(name="__return", shape=[1], dtype=dace.int32)

tasklet = dace.sdfg.nodes.Tasklet(
"DummyNestedSDFG",
Expand Down

0 comments on commit f0eca78

Please sign in to comment.