Skip to content
Snippets Groups Projects
Commit b888ad9e authored by Markus Blatt's avatar Markus Blatt Committed by Christoph Grüninger
Browse files

Fixes compilation with SuperLU 7 by forcing backwards compatibility

SuperLU 7.0.0 now uses singlecomplex instead of complex and by default
does not add a typedef to make singlecomplex available as type
complex. The latter was used in previous versions.

As we need to support several versions of SuperLU we force adding such
a typedef by defining SUPERLU_TYPEDEF_COMPLEX
parent 9876beb5
No related branches found
No related tags found
1 merge request!593Fixes compilation with SuperLU 7 by forcing backwards compatibility
Pipeline #74429 passed
......@@ -58,6 +58,13 @@ extern "C" {
#endif
#if __has_include("slu_cdefs.h")
#ifndef SUPERLU_TYPEDEF_COMPLEX
// Per default SuperLU >= 7.0.0. does not provide
// a type complex anymore. By setting SUPERLU_TYPEDEF_COMPLEX
// we tell SuperLU to define complex to be the same as the
// new type singlecomplex
#define SUPERLU_TYPEDEF_COMPLEX
#endif
#include "slu_scomplex.h"
extern "C" {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment