10 #include "Galeri_Maps.h"
11 #include "Galeri_CrsMatrices.h"
12 #include "Galeri_Utils.h"
23 using namespace Galeri;
29 int main(
int argc,
char* argv[])
32 MPI_Init(&argc, &argv);
47 GaleriList.
set(
"nx", nx);
48 GaleriList.
set(
"ny", ny);
54 #ifndef GALERI_TEST_USE_LONGLONG_GO
55 Map = CreateMap(
"Cartesian2D", Comm, GaleriList);
57 Map = CreateMap64(
"Cartesian2D", Comm, GaleriList);
61 Matrix = CreateCrsMatrix(
"Biharmonic2D", Map, GaleriList);
68 PrintStencil2D(Matrix, nx, ny, GID);
74 catch (Exception& rhs)
76 if (Comm.
MyPID() == 0)
78 cerr <<
"Caught exception: ";
ParameterList & set(std::string const &name, T &&value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
virtual void Print(std::ostream &os) const
int main(int argc, char *argv[])