Amesos Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SpoolesOO.h
Go to the documentation of this file.
1 // @HEADER
2 // ***********************************************************************
3 //
4 // Amesos: Direct Sparse Solver Package
5 // Copyright (2004) Sandia Corporation
6 //
7 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
8 // license for use of this work by or on behalf of the U.S. Government.
9 //
10 // This library is free software; you can redistribute it and/or modify
11 // it under the terms of the GNU Lesser General Public License as
12 // published by the Free Software Foundation; either version 2.1 of the
13 // License, or (at your option) any later version.
14 //
15 // This library is distributed in the hope that it will be useful, but
16 // 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
21 // License along with this library; if not, write to the Free Software
22 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
23 // USA
24 // Questions? Contact Michael A. Heroux (maherou@sandia.gov)
25 //
26 // ***********************************************************************
27 // @HEADER
28 
29 #ifndef _SPOOLESOO_H_
30 #define _SPOOLESOO_H_
31 
32 #if defined(Amesos_SHOW_DEPRECATED_WARNINGS)
33 #ifdef __GNUC__
34 #warning "The Amesos package is deprecated"
35 #endif
36 #endif
37 
38 class Epetra_Comm;
39 class Epetra_BlockMap;
40 class Epetra_MultiVector;
41 class Epetra_RowMatrix;
42 // #include "Epetra_LinearProblem.h"
43 #include "Epetra_Operator.h"
44 #include "Epetra_Object.h"
45 
46 
48 
57 class SpoolesOO {
58 
59  public:
61 
62  SpoolesOO();
63 
64  virtual ~SpoolesOO(void);
65 
66  int SetUserMatrix(Epetra_RowMatrix * UserMatrix);
67 
68  int SetLHS(Epetra_MultiVector * X);
69 
70  int SetRHS(Epetra_MultiVector * B);
71 
73 
74  Epetra_MultiVector * GetLHS() const {return(X_);};
75 
76  Epetra_MultiVector * GetRHS() const {return(B_);};
77 
78  bool GetTrans( ) const { return Transpose_ ;} ;
79 
80  void SetTrans( bool trans ) { Transpose_ = trans ;} ;
81 
82  int SetSpoolesDefaults();
83 
84  int Solve() ;
85 
86  protected:
87 
94 
95 
96  bool Transpose_ ;
97 
98  int x_LDA_;
99  double *x_;
100  int b_LDA_;
101  double *b_;
103 };
104 
105 
106 #endif /* _SPOOLESOO_H_ */
Epetra_Operator * PrecOperator_
Definition: SpoolesOO.h:90
int b_LDA_
Definition: SpoolesOO.h:100
Epetra_MultiVector * B_
Definition: SpoolesOO.h:93
void SetTrans(bool trans)
Definition: SpoolesOO.h:80
Epetra_MultiVector * X_
Definition: SpoolesOO.h:92
int SetRHS(Epetra_MultiVector *B)
Definition: SpoolesOO.cpp:99
Epetra_RowMatrix * UserMatrix_
Definition: SpoolesOO.h:89
double * x_
Definition: SpoolesOO.h:99
bool Transpose_
Definition: SpoolesOO.h:96
int Solve()
Definition: SpoolesOO.cpp:128
int SetUserMatrix(Epetra_RowMatrix *UserMatrix)
Definition: SpoolesOO.cpp:79
int SetSpoolesDefaults()
Definition: SpoolesOO.cpp:108
int x_LDA_
Definition: SpoolesOO.h:98
int SetLHS(Epetra_MultiVector *X)
Definition: SpoolesOO.cpp:90
bool inConstructor_
Definition: SpoolesOO.h:102
Epetra_RowMatrix * PrecMatrix_
Definition: SpoolesOO.h:91
virtual ~SpoolesOO(void)
Definition: SpoolesOO.cpp:73
bool GetTrans() const
Definition: SpoolesOO.h:78
Epetra_Operator * UserOperator_
Definition: SpoolesOO.h:88
SpoolesOO: An object-oriented wrapper for Spooles.
Definition: SpoolesOO.h:57
Epetra_MultiVector * GetLHS() const
Definition: SpoolesOO.h:74
Epetra_RowMatrix * GetUserMatrix() const
Definition: SpoolesOO.h:72
Epetra_MultiVector * GetRHS() const
Definition: SpoolesOO.h:76
double * b_
Definition: SpoolesOO.h:101