18 #include "Galeri_ReadHB.h"
24 int main(
int argc,
char *argv[])
27 MPI_Init(&argc, &argv);
50 std::string matrix_file=
"bcsstm05_ns.rua";
53 Galeri::ReadHB(matrix_file.c_str(), Comm, readMap,
54 readA, readx, readb, readxexact);
58 std::cout <<
"Caught exception, maybe file name is incorrect" << std::endl;
85 assert (OriginalMap.
SameAs(*readMap));
93 x.Export(*readx, exporter,
Add);
94 b.Export(*readb, exporter,
Add);
95 xexact.Export(*readxexact, exporter,
Add);
96 A.Export(*readA, exporter,
Add);
118 std::string solverType =
"Klu";
124 std::cout <<
"Processor "<< map.
Comm().
MyPID() <<
" : Symbolic factorization did not complete!" << std::endl;
130 std::cout <<
"Processor "<< map.
Comm().
MyPID() <<
" : Numeric factorization did not complete!" << std::endl;
135 Comm.
MinAll( &numRet, &minRet, 1 );
139 std::cout << std::endl <<
"End Result: TEST FAILED" << std::endl;
143 std::cout << std::endl <<
"End Result: TEST PASSED" << std::endl;
int NumGlobalElements() const
bool GlobalIndicesLongLong() const
bool SameAs(const Epetra_BlockMap &Map) const
virtual int NumericFactorization()=0
Performs NumericFactorization on the matrix A.
virtual int SymbolicFactorization()=0
Performs SymbolicFactorization on the matrix A.
const Epetra_Map & RowMatrixRowMap() const
bool GlobalIndicesInt() const
virtual int MyPID() const =0
int FillComplete(bool OptimizeDataStorage=true)
int MinAll(double *PartialMins, double *GlobalMins, int Count) const
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
int main(int argc, char *argv[])
Factory for binding a third party direct solver to an Epetra_LinearProblem.
const Epetra_Comm & Comm() const
Amesos_BaseSolver * Create(const char *ClassType, const Epetra_LinearProblem &LinearProblem)
Amesos Create method.
const int NumericallySingularMatrixError