45 #include "Galeri_Maps.h"
46 #include "Galeri_CrsMatrices.h"
47 #include "Galeri_Utils.h"
48 #include "Epetra_MultiVector.h"
50 #include "Teuchos_UnitTestHarness.hpp"
51 #include "Teuchos_RCP.hpp"
52 #include "Epetra_ConfigDefs.h"
53 #include "Epetra_Vector.h"
54 #include "Epetra_RowMatrix.h"
55 #include "Epetra_MultiVector.h"
56 #include "Epetra_CrsMatrix.h"
57 #include "Epetra_Map.h"
60 #include "Epetra_MpiComm.h"
62 #include "Epetra_SerialComm.h"
65 #include "Teuchos_Array.hpp"
82 for(
int i = 0; i <
N; i++){
106 GaleriList.
set(
"nx", nx);
107 GaleriList.
set(
"ny", ny);
113 Map = Galeri::CreateMap(
"Cartesian2D", Comm, GaleriList);
116 Matrix = Galeri::CreateCrsMatrix(
"Biharmonic2D", Map, GaleriList);
119 Ifpack_Hypre preconditioner(Matrix);
154 preconditioner.SetParameters(list);
155 preconditioner.Compute();
160 catch (Galeri::Exception& rhs)
162 if (Comm.
MyPID() == 0)
164 cerr <<
"Caught exception: ";
int Multiply(bool TransA, const Epetra_Vector &x, Epetra_Vector &y) const
virtual int InsertGlobalValues(int GlobalRow, int NumEntries, const double *Values, const int *Indices)
const Epetra_Map & RowMatrixRowMap() const
ParameterList & set(std::string const &name, T &&value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
int FillComplete(bool OptimizeDataStorage=true)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
virtual void Print(std::ostream &os) const
TEUCHOS_UNIT_TEST(Ifpack_Hypre, Construct)