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:
parent
fbec8c2300
commit
634a7bef42
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user