make call_umfpack.c compile even if UMFPACK is not available

That said, don't try to call any of its functions or you'll regret it
at runtime!
This commit is contained in:
Andreas Lauser 2017-11-23 00:04:17 +01:00
parent fbec8c2300
commit 634a7bef42

View File

@ -34,6 +34,8 @@
*/
#include "config.h"
#if HAVE_UMFPACK
#include <assert.h>
#include <stdlib.h>
@ -183,3 +185,15 @@ call_UMFPACK(struct CSRMatrix *A, const double *b, double *x)
csc_deallocate(csc);
}
#else
#include <stdlib.h>
#include <opm/core/linalg/call_umfpack.h>
void
call_UMFPACK(struct CSRMatrix *A, const double *b, double *x)
{
/* UMFPACK is not available */
abort();
}
#endif