diff options
author | Anton Khirnov <anton@khirnov.net> | 2019-01-25 16:06:17 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2019-01-25 16:06:17 +0100 |
commit | c570c02ea4a427ed6dbf74652ba4f7936cb371e8 (patch) | |
tree | 645056c97302b46ce9740ede7797674ff8bae9e5 /mg2d.c | |
parent | 30ca9d8f0fa8dcaab5606d03e4cdf4082db9baae (diff) |
Stop duplicating some constants between ell_relax and mg2d.
Diffstat (limited to 'mg2d.c')
-rw-r--r-- | mg2d.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -432,9 +432,9 @@ static int mg_levels_init(MG2DContext *ctx) for (int i = 0; i < ARRAY_ELEMS(cur->solver->boundaries); i++) { MG2DBoundary *bsrc = ctx->boundaries[i]; EllRelaxBoundary *bdst = &cur->solver->boundaries[i]; + bdst->type = bsrc->type; switch (bsrc->type) { case MG2D_BC_TYPE_FIXVAL: - bdst->type = ELL_RELAX_BC_TYPE_FIXVAL; if (!prev) bnd_copy(bdst, bsrc->val, bsrc->val_stride, ctx->fd_stencil, cur->solver->domain_size[0]); @@ -442,7 +442,6 @@ static int mg_levels_init(MG2DContext *ctx) bnd_zero(bdst, ctx->fd_stencil, cur->solver->domain_size[0]); break; case MG2D_BC_TYPE_FIXDIFF: - bdst->type = ELL_RELAX_BC_TYPE_FIXDIFF; bnd_zero(bdst, ctx->fd_stencil, cur->solver->domain_size[0]); break; default: |