49#include "Epetra_LinearProblem.h"
50#include "Epetra_Time.h"
51#include "Epetra_Import.h"
53#include "Epetra_MpiComm.h"
55#include "Epetra_Comm.h"
57#include "Epetra_CrsGraph.h"
58#include "Epetra_CrsMatrix.h"
106#ifndef DOXYGEN_SHOULD_SKIP_THIS
129 Amesos_Klu(
const Epetra_LinearProblem& LinearProblem );
276 std::vector <int>
Ap;
295 Teuchos::RCP<EpetraExt::MultiVector_Reindex> VecTrans_;
297 Teuchos::RCP<EpetraExt::CrsMatrix_Reindex> MatTrans_;
299 Teuchos::RCP<Epetra_Map> ContiguousMap_;
Amesos_BaseSolver: A pure virtual class for direct solution of real-valued double-precision operators...
Amesos_Control()
Default constructor.
int SymbolicFactorization()
Performs SymbolicFactorization on the matrix A.
void PrintTiming() const
Prints timing information.
const Epetra_LinearProblem * GetProblem() const
Get a pointer to the Problem.
Teuchos::RCP< Epetra_MultiVector > SerialXextract_
Serial versions of the LHS and RHS (if necessary).
int NumSymbolicFact() const
Returns the number of symbolic factorizations performed by this object.
Teuchos::RCP< Epetra_MultiVector > SerialB_
Serial versions of the LHS and RHS (may point to the original vector if serial).
int PerformNumericFactorization()
int SetParameters(Teuchos::ParameterList &ParameterList)
Updates internal variables.
std::vector< double > VecAval
int CreateLocalMatrixAndExporters()
bool TrustMe_
If true, no checks are made and the matrix is assume to be distributed.
const Epetra_Comm & Comm() const
Returns a pointer to the Epetra_Comm communicator associated with this operator.
bool UseTranspose() const
Returns the current UseTranspose setting.
int SetUseTranspose(bool UseTranspose_in)
SetUseTranpose(true) is more efficient in Amesos_Klu.
bool UseTranspose_
If true, the transpose of A is used.
Epetra_CrsMatrix * CrsMatrixA_
Operator converted to a CrsMatrix.
~Amesos_Klu(void)
Amesos_Klu Destructor.
Teuchos::RCP< Epetra_Import > ImportDomainToSerial_
Teuchos::RCP< Epetra_Import > ImportToSerial_
Importer to process 0.
Teuchos::RCP< Epetra_Map > SerialMap_
Points to a Serial Map (unused if UseDataInPlace_ == 1 ).
std::vector< int > ColIndicesV_
Only used for RowMatrices to extract copies.
Teuchos::RCP< Amesos_Klu_Pimpl > PrivateKluData_
int MtxRedistTime_
Quick access ids for the individual timings.
Teuchos::RCP< Amesos_StandardIndex > StdIndexDomain_
Teuchos::RCP< Epetra_MultiVector > SerialX_
int UseDataInPlace_
1 if Problem_->GetOperator() is stored entirely on process 0
void PrintStatus() const
Prints information about the factorization and solution phases.
std::vector< double > RowValuesV_
Only used for RowMatrices to extract copies.
Epetra_RowMatrix * RowMatrixA_
Operator converted to a RowMatrix.
Amesos_Klu(const Epetra_LinearProblem &LinearProblem)
Amesos_Klu Constructor.
Teuchos::RCP< Epetra_Import > ImportRangeToSerial_
Teuchos::RCP< Epetra_CrsMatrix > SerialCrsMatrixA_
Points to a Serial Copy of A (unused if UseDataInPlace_==1).
Teuchos::RCP< Amesos_StandardIndex > StdIndex_
const Epetra_LinearProblem * Problem_
Pointer to the linear system problem.
Teuchos::RCP< Epetra_MultiVector > SerialBextract_
int NumericFactorization()
Performs NumericFactorization on the matrix A.
int NumSolve() const
Returns the number of solves performed by this object.
Teuchos::RCP< Amesos_StandardIndex > StdIndexRange_
int Solve()
Solves A X = B (or AT x = B).
int ConvertToKluCRS(bool firsttime)
int PerformSymbolicFactorization()
long long numentries_
Number of non-zero entries in Problem_->GetOperator().
Epetra_RowMatrix * StdIndexMatrix_
Points to a Contiguous Copy of A.
bool MatrixShapeOK() const
Returns true if KLU can handle this matrix shape.
int NumVectors_
Number of vectors in RHS and LHS.
void GetTiming(Teuchos::ParameterList &TimingParameterList) const
Extracts timing information and places in parameter list.
Epetra_RowMatrix * SerialMatrix_
Points to a Serial Copy of A.
double * SerialXBvalues_
Pointer to the actual values in the serial version of X and B.
long long NumGlobalElements_
Number of rows and columns in the Problem_->GetOperator().
int NumNumericFact() const
Returns the number of numeric factorizations performed by this object.
Amesos_NoCopiable()
Default constructor.
int NumSymbolicFact_
Number of symbolic factorization phases.
int NumSolve_
Number of solves.
int NumNumericFact_
Number of numeric factorization phases.
Amesos_Status()
Default constructor.
Amesos_Time()
Default constructor to create size timers.
void GetTiming(Teuchos::ParameterList &list) const
Load up the current timing information into the parameter list.
Amesos_Utils()
Default constructor.