From 589b267a93a92093a442cba9d1169c13e3f0a7c6 Mon Sep 17 00:00:00 2001 From: David Shah Date: Tue, 19 Feb 2019 22:00:01 +0000 Subject: HeAP: Fix regression Signed-off-by: David Shah --- common/placer_math.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/placer_math.c') diff --git a/common/placer_math.c b/common/placer_math.c index 1aa74a9d..b36a9ec5 100644 --- a/common/placer_math.c +++ b/common/placer_math.c @@ -38,6 +38,8 @@ void taucif_finalise_matrix(struct taucif_system *sys) { } int taucif_solve_system(struct taucif_system *sys, double *x, double *rhs) { + if (sys->mat->n <= 2) + return 0; // FIXME: preconditioner, droptol?? taucs_ccs_matrix* precond_mat = taucs_ccs_factor_llt(sys->mat, 1e-2, 0); if (precond_mat == NULL) -- cgit v1.2.3