LifeV
AztecooOperator.hpp
Go to the documentation of this file.
1 //@HEADER
2 /*
3 *******************************************************************************
4 
5  Copyright (C) 2004, 2005, 2007 EPFL, Politecnico di Milano, INRIA
6  Copyright (C) 2010 EPFL, Politecnico di Milano, Emory University
7 
8  This file is part of LifeV.
9 
10  LifeV is free software; you can redistribute it and/or modify
11  it under the terms of the GNU Lesser General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  LifeV is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public License
21  along with LifeV. If not, see <http://www.gnu.org/licenses/>.
22 
23 *******************************************************************************
24 */
25 //@HEADER
26 
27 /*!
28  @file
29  @brief AztecooOperator
30 
31  @author Umberto Villa <umberto.villa@gmail.com>
32 
33  @date 03-09-2010
34  */
35 
36 #ifndef _AZTECOOOPERATOR_HPP_
37 #define _AZTECOOOPERATOR_HPP_
38 
39 #include <AztecOO.h>
40 #include <Teuchos_ParameterList.hpp>
41 
42 #include <lifev/core/operator/SolverOperator.hpp>
43 #include <lifev/core/array/VectorEpetra.hpp>
44 
45 namespace LifeV
46 {
47 namespace Operators
48 {
49 //! @class AztecooOperator
50 /*! @brief Abstract class which defines the interface of an Invertible Linear Operator.
51  *
52  */
54 {
55 public:
58 
60 
61 protected:
62 
63  virtual int doApplyInverse ( const vector_Type& X, vector_Type& Y ) const;
64  virtual void doSetOperator();
65  virtual void doSetPreconditioner();
66  virtual void doSetParameterList();
67  virtual void doResetSolver();
68 
70 };
71 
73 {
74  return new AztecooOperator();
75 }
76 namespace
77 {
79 }
80 
81 
82 } // Namespace Operators
83 
84 } // Namespace LifeV
85 
86 #endif // _AZTECOOOPERATOR_HPP_
SolverOperator(std::shared_ptr< Epetra_Comm > comm=std::shared_ptr< Epetra_Comm >(new Epetra_MpiComm(MPI_COMM_WORLD)))
void updateInverseJacobian(const UInt &iQuadPt)
std::shared_ptr< SolverType > SolverType_ptr
Abstract class which defines the interface of an Invertible Linear Operator.
SolverOperator * createAztecooOperator()
virtual int doApplyInverse(const vector_Type &X, vector_Type &Y) const