summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-03-25 18:10:21 +0100
committerAnton Khirnov <anton@khirnov.net>2019-03-25 18:10:21 +0100
commitf31df936804499db0f456cbe15a524de6ba039cd (patch)
treeb9a438c76f753dca95588163b4d075ef4fbb7610
parente1d1bdc0d20cc379f2cf31fca84f6179eba0cb36 (diff)
egs: zero u on allocation
This will be useful in later commits.
-rw-r--r--ell_grid_solve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ell_grid_solve.c b/ell_grid_solve.c
index 49b2321..fdbce7d 100644
--- a/ell_grid_solve.c
+++ b/ell_grid_solve.c
@@ -679,7 +679,7 @@ static int arrays_alloc(EGSContext *ctx, const size_t domain_size[2])
SLICE(ghosts, -ghosts, 1) };
int ret;
- ret = mg2di_ndarray_alloc(&priv->u_base, 2, size_padded, 0);
+ ret = mg2di_ndarray_alloc(&priv->u_base, 2, size_padded, NDARRAY_ALLOC_ZERO);
if (ret < 0)
return ret;