mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Allow usage of AMG if flow_ebos is used and UMFPack is available.
This was previously deactivated because of the single precision support of flow_legacy and missing single-precision support for UMFPack. As flow_ebos does not use single precision this commit allows using amg at least for flow_ebos.
This commit is contained in:
parent
c3555a21d2
commit
98e2eeb4dc
@ -249,7 +249,7 @@ namespace Opm
|
|||||||
// Communicate if parallel.
|
// Communicate if parallel.
|
||||||
parallelInformation_arg.copyOwnerToAll(istlb, istlb);
|
parallelInformation_arg.copyOwnerToAll(istlb, istlb);
|
||||||
|
|
||||||
#if ! HAVE_UMFPACK
|
#if defined(OPM_FLOW_MAIN_EBOS_HEADER_INCLUDED) || ! HAVE_UMFPACK // activate AMG if either flow_ebos is used or UMFPack is not available
|
||||||
if( parameters_.linear_solver_use_amg_ )
|
if( parameters_.linear_solver_use_amg_ )
|
||||||
{
|
{
|
||||||
typedef ISTLUtility::CPRSelector< Matrix, Vector, Vector, POrComm> CPRSelectorType;
|
typedef ISTLUtility::CPRSelector< Matrix, Vector, Vector, POrComm> CPRSelectorType;
|
||||||
|
Loading…
Reference in New Issue
Block a user