GEOS
TrilinosInterface.hpp
Go to the documentation of this file.
1 /*
2  * ------------------------------------------------------------------------------------------------------------
3  * SPDX-License-Identifier: LGPL-2.1-only
4  *
5  * Copyright (c) 2016-2024 Lawrence Livermore National Security LLC
6  * Copyright (c) 2018-2024 Total, S.A
7  * Copyright (c) 2018-2024 The Board of Trustees of the Leland Stanford Junior University
8  * Copyright (c) 2023-2024 Chevron
9  * Copyright (c) 2019- GEOS/GEOSX Contributors
10  * All rights reserved
11  *
12  * See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details.
13  * ------------------------------------------------------------------------------------------------------------
14  */
15 
20 #ifndef GEOS_LINEARALGEBRA_INTERFACES_TRILINOSINTERFACE_HPP_
21 #define GEOS_LINEARALGEBRA_INTERFACES_TRILINOSINTERFACE_HPP_
22 
25 #include "linearAlgebra/common/PreconditionerBase.hpp"
27 
28 #include <memory>
29 
30 namespace geos
31 {
32 
38 {
42  static void initialize();
43 
47  static void finalize();
48 
54  static std::unique_ptr< LinearSolverBase< TrilinosInterface > >
56 
62  static std::unique_ptr< PreconditionerBase< TrilinosInterface > >
64 
71  static std::unique_ptr< PreconditionerBase< TrilinosInterface > >
73  array1d< EpetraVector > const & nearNullKernel );
74 
79 };
80 
81 } /* namespace geos */
82 
83 #endif /* GEOS_LINEARALGEBRA_INTERFACES_TRILINOSINTERFACE_HPP_ */
Wrapper class for Epetra's CrsMatrix.
Wrapper around Trilinos' Epetra_Vector object.
Array< T, 1 > array1d
Alias for 1D array.
Definition: DataTypes.hpp:176
Set of parameters for a linear solver or preconditioner.
This class holds aliases based on the Trilinos library.
static void initialize()
Initializes the Trilinos library.
static std::unique_ptr< PreconditionerBase< TrilinosInterface > > createPreconditioner(LinearSolverParameters params, array1d< EpetraVector > const &nearNullKernel)
Create a Trilinos-based preconditioner object.
static void finalize()
Finalizes the Trilinos library.
static std::unique_ptr< LinearSolverBase< TrilinosInterface > > createSolver(LinearSolverParameters params)
Create a petsc-based solver object.
static std::unique_ptr< PreconditionerBase< TrilinosInterface > > createPreconditioner(LinearSolverParameters params)
Create a Trilinos-based preconditioner object.