55 #include "../epetra_test_err.h"
58 int main(
int argc,
char *argv[]) {
66 MPI_Init(&argc,&argv);
79 if (argc>1)
if (argv[1][0]==
'-' && argv[1][1]==
'v') verbose =
true;
82 int localverbose = verbose ? 1 : 0;
84 MPI_Allreduce(&localverbose, &globalverbose, 1, MPI_INT, MPI_SUM,
86 verbose = (globalverbose>0);
89 int MyPID = Comm.
MyPID();
92 if (verbose && MyPID==0)
95 if (verbose) cout << Comm <<endl;
100 int NumMyElements = 4;
101 int NumGlobalElements = NumMyElements*NumProc;
104 Epetra_Map Map(NumGlobalElements, NumMyElements, IndexBase, Comm);
113 bool preconstruct_graph =
false;
117 preconstruct_graph =
true;
Epetra_Map: A class for partitioning vectors and matrices.
#define EPETRA_TEST_ERR(a, b)
int MyPID() const
Return my process ID.
Epetra_MpiComm: The Epetra MPI Communication Class.
std::string Epetra_Version()
int Drumm1(const Epetra_Map &map, bool verbose)
int NumProc() const
Returns total number of processes (always returns 1 for SerialComm).
Epetra_SerialComm: The Epetra Serial Communication Class.
int main(int argc, char *argv[])
int Drumm3(const Epetra_Map &map, bool verbose)
int submatrix_formats(const Epetra_Comm &Comm, bool verbose)
int rectangular(const Epetra_Comm &Comm, bool verbose)
int Drumm2(const Epetra_Map &map, bool verbose)
int four_quads(const Epetra_Comm &Comm, bool preconstruct_graph, bool verbose)