aboutsummaryrefslogtreecommitdiff
path: root/mg2d.c
diff options
context:
space:
mode:
Diffstat (limited to 'mg2d.c')
-rw-r--r--mg2d.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mg2d.c b/mg2d.c
index a65af6c..003b88d 100644
--- a/mg2d.c
+++ b/mg2d.c
@@ -215,7 +215,7 @@ static void mg_interp_bilinear(TPContext *tp,
tp_execute(tp, ctx_dst->domain_size[1], mg_interp_bilinear_kernel, &ip);
}
-static void coarse_correct_task(void *arg, unsigned int job_idx, unsigned int thread_idx)
+static int coarse_correct_task(void *arg, unsigned int job_idx, unsigned int thread_idx)
{
MG2DLevel *level = arg;
@@ -224,6 +224,7 @@ static void coarse_correct_task(void *arg, unsigned int job_idx, unsigned int th
const ptrdiff_t idx_src = job_idx * level->prolong_tmp_stride + idx0;
level->solver->u[idx_dst] -= level->prolong_tmp[idx_src];
}
+ return 0;
}
static void restrict_residual(MG2DContext *ctx, MG2DLevel *dst, MG2DLevel *src)