diff --git a/examples/flow_ebos.cpp b/examples/flow_ebos.cpp index acb757cec..00d8eddb1 100644 --- a/examples/flow_ebos.cpp +++ b/examples/flow_ebos.cpp @@ -24,13 +24,14 @@ #include "config.h" #endif // HAVE_CONFIG_H -// Include of opm/autodiff/FlowMainEbos.hpp has to come first -#include +// Define making clear that the simulator supports AMG +#define FLOW_SUPPORT_AMG 1 #include #include #include #include +#include // ----------------- Main program ----------------- diff --git a/examples/flow_legacy.cpp b/examples/flow_legacy.cpp index 53a5b2d6d..e40a412e2 100644 --- a/examples/flow_legacy.cpp +++ b/examples/flow_legacy.cpp @@ -24,6 +24,8 @@ #include "config.h" #endif // HAVE_CONFIG_H +// Define making clear that the simulator supports AMG +#define FLOW_SUPPORT_AMG !defined(HAVE_UMFPACK) #include #include diff --git a/examples/flow_mpi.cpp b/examples/flow_mpi.cpp index e3f65b970..5356207ff 100644 --- a/examples/flow_mpi.cpp +++ b/examples/flow_mpi.cpp @@ -24,6 +24,8 @@ #include "config.h" #endif // HAVE_CONFIG_H +// Define making clear that the simulator supports AMG +#define FLOW_SUPPORT_AMG !defined(HAVE_UMFPACK) #include #include diff --git a/opm/autodiff/FlowMain.hpp b/opm/autodiff/FlowMain.hpp index 644512863..4a03d5301 100644 --- a/opm/autodiff/FlowMain.hpp +++ b/opm/autodiff/FlowMain.hpp @@ -23,9 +23,6 @@ #ifndef OPM_FLOWMAIN_HEADER_INCLUDED #define OPM_FLOWMAIN_HEADER_INCLUDED -// Define making clear that the simulator supports AMG -#define FLOW_SUPPORT_AMG !defined(HAVE_UMFPACK) - #include diff --git a/opm/autodiff/FlowMainEbos.hpp b/opm/autodiff/FlowMainEbos.hpp index fdf0864f4..8b2ef145f 100755 --- a/opm/autodiff/FlowMainEbos.hpp +++ b/opm/autodiff/FlowMainEbos.hpp @@ -23,8 +23,6 @@ #ifndef OPM_FLOW_MAIN_EBOS_HEADER_INCLUDED #define OPM_FLOW_MAIN_EBOS_HEADER_INCLUDED -// Define making clear that the simulator supports AMG -#define FLOW_SUPPORT_AMG 1 #include