diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-01-11 17:14:22 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-01-11 17:14:22 +0100 |
commit | 3f6fe366cc0a1c965389b30c7c74f5539e7a04c3 (patch) | |
tree | 921ebce1f83d7cd24f4c24284daf32492f945830 | |
parent | 121a0add4a95c52c41b03723fb321e2f84902276 (diff) |
pssolve: fix construct_matrix() signature
Make it compatible with TPExecuteCallback
-rw-r--r-- | pssolve.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |