Skip to content

Commit

Permalink
calling constant_field from zero_field
Browse files Browse the repository at this point in the history
  • Loading branch information
halungge committed Oct 4, 2022
1 parent 5b9aa1b commit 9574f77
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions testutils/src/icon4py/testutils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ def random_field(
def zero_field(
mesh: simple_mesh.SimpleMesh, *dims: gt_common.Dimension, dtype=float
) -> it_embedded.MutableLocatedField:
return it_embedded.np_as_located_field(*dims)(
np.zeros(shape=tuple(map(lambda x: mesh.size[x], dims)), dtype=dtype)
)
return constant_field(mesh, 0.0, *dims, dtype=dtype)


def constant_field(
Expand Down

0 comments on commit 9574f77

Please sign in to comment.