aboutsummaryrefslogtreecommitdiff
path: root/pssolve.c
diff options
context:
space:
mode:
Diffstat (limited to 'pssolve.c')
-rw-r--r--pssolve.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pssolve.c b/pssolve.c
index 882eed3..e03404e 100644
--- a/pssolve.c
+++ b/pssolve.c
@@ -73,7 +73,7 @@ typedef struct ConstructMatrixThread {
unsigned int var_idx;
} ConstructMatrixThread;
-static void construct_matrix(void *arg, unsigned int job_idx, unsigned int thread_idx)
+static int construct_matrix(void *arg, unsigned int job_idx, unsigned int thread_idx)
{
ConstructMatrixThread *cmt = arg;
const PSEquationContext *eq_ctx = cmt->eq_ctx;
@@ -92,6 +92,8 @@ static void construct_matrix(void *arg, unsigned int job_idx, unsigned int threa
mat[idx_grid + mat_stride * idx_coeff] = val;
}
+
+ return 0;
}
static int lu_invert(TDLogger *logger, const int N, double *mat, double *rhs, int *ipiv)