opm-simulators
Loading...
Searching...
No Matches
StandardPreconditioners.hpp
1/*
2 Copyright 2025 Equinor ASA
3
4 This file is part of the Open Porous Media project (OPM).
5 OPM is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9 OPM is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13 You should have received a copy of the GNU General Public License
14 along with OPM. If not, see <http://www.gnu.org/licenses/>.
15*/
16
17#ifndef OPM_STANDARDPRECONDITIONERS_HEADER
18#define OPM_STANDARDPRECONDITIONERS_HEADER
19
20// This is a convenience header to include all standard preconditioners.
21// It includes the serial and MPI versions of the standard preconditioners.
22
23// Note that you probably should not include this header directly, but rather
24// include the PreconditionerFactory.hpp header, which will handle this.
25
26#include <opm/simulators/linalg/is_gpu_operator.hpp>
27#include <opm/simulators/linalg/StandardPreconditioners_mpi.hpp>
28#include <opm/simulators/linalg/StandardPreconditioners_serial.hpp>
29
30#if HAVE_CUDA
31#include <opm/simulators/linalg/StandardPreconditioners_gpu_mpi.hpp>
32#include <opm/simulators/linalg/StandardPreconditioners_gpu_serial.hpp>
33#endif // HAVE_CUDA
34
35#endif // OPM_STANDARDPRECONDITIONERS_HEADER