aboutsummaryrefslogtreecommitdiff
path: root/relax_test.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-04-23 15:36:34 +0200
committerAnton Khirnov <anton@khirnov.net>2019-04-24 14:44:36 +0200
commit86ad823b9ade211bfa9361b61571933aff1c9d24 (patch)
tree7a44acde9b11a9958b953f50927441318c2beb5e /relax_test.c
parent580740356c44658620bff6f9ddd8a006f04c31fc (diff)
egs: merge residual calc and correct when possible
Also, merge the reflect boundary condition into residual calc+add. Improves performance due to better locality.
Diffstat (limited to 'relax_test.c')
-rw-r--r--relax_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/relax_test.c b/relax_test.c
index 5c07107..50ad04c 100644
--- a/relax_test.c
+++ b/relax_test.c
@@ -144,7 +144,7 @@ int main(int argc, char **argv)
res_old = findmax(ctx->residual->data, ctx->residual->stride[0] * ctx->domain_size[1]);
for (int i = 0; i < maxiter; i++) {
- ret = mg2di_egs_solve(ctx);
+ ret = mg2di_egs_solve(ctx, 0);
if (ret < 0) {
fprintf(stderr, "Error during relaxation\n");
ret = 1;