Skip to content

Commit

Permalink
Update model/common/src/icon4py/model/common/utils/gt4py_field_alloca…
Browse files Browse the repository at this point in the history
…tion.py
  • Loading branch information
nfarabullini authored Oct 11, 2024
1 parent 746a904 commit c81b213
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ def allocate_indices(
backend: Optional[backend.Backend] = None,
):
shapex = grid.size[dim] + 1 if is_halfdim else grid.size[dim]
return gtx.as_field((dim,), xp.arange(shapex, dtype=dtype), allocator=backend.allocator)
return gtx.as_field((dim,), xp.arange(shapex, dtype=dtype), allocator=backend)

0 comments on commit c81b213

Please sign in to comment.