mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-10 17:05:35 -06:00
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
503c7d1ca8
commit
db1f257184
@ -34,6 +34,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#if HAVE_UMFPACK
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
@ -183,3 +185,15 @@ call_UMFPACK(struct CSRMatrix *A, const double *b, double *x)
|
|||||||
csc_deallocate(csc);
|
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