mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Resort to setting one define for AMG support in the main simulator
This commit is contained in:
parent
98e2eeb4dc
commit
5a6ace9063
@ -23,6 +23,8 @@
|
||||
#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 <opm/common/utility/platform_dependent/disable_warnings.h>
|
||||
|
||||
|
@ -23,8 +23,12 @@
|
||||
#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
|
||||
|
||||
#include <sys/utsname.h>
|
||||
|
||||
|
||||
#include <opm/simulators/ParallelFileMerger.hpp>
|
||||
#include <opm/simulators/ensureDirectoryExists.hpp>
|
||||
|
||||
|
@ -249,7 +249,7 @@ namespace Opm
|
||||
// Communicate if parallel.
|
||||
parallelInformation_arg.copyOwnerToAll(istlb, istlb);
|
||||
|
||||
#if defined(OPM_FLOW_MAIN_EBOS_HEADER_INCLUDED) || ! HAVE_UMFPACK // activate AMG if either flow_ebos is used or UMFPack is not available
|
||||
#if FLOW_SUPPORT_AMG // activate AMG if either flow_ebos is used or UMFPack is not available
|
||||
if( parameters_.linear_solver_use_amg_ )
|
||||
{
|
||||
typedef ISTLUtility::CPRSelector< Matrix, Vector, Vector, POrComm> CPRSelectorType;
|
||||
|
Loading…
Reference in New Issue
Block a user