56 #include "../epetra_test_err.h"
59 int main(
int argc,
char *argv[]) {
67 MPI_Init(&argc,&argv);
80 if (argc>1)
if (argv[1][0]==
'-' && argv[1][1]==
'v') verbose =
true;
82 int verbose_int = verbose ? 1 : 0;
84 verbose = verbose_int==1 ?
true :
false;
86 int MyPID = Comm.
MyPID();
89 if (verbose && MyPID==0)
92 if (verbose) cout << Comm <<endl;
95 int NumMyElements = 4;
96 int NumGlobalElements = NumMyElements*NumProc;
99 Epetra_Map Map(NumGlobalElements, NumMyElements, IndexBase, Comm);
107 bool preconstruct_graph =
false;
111 preconstruct_graph =
true;
Epetra_Map: A class for partitioning vectors and matrices.
int quad1(const Epetra_Map &map, bool verbose)
#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 quad2(const Epetra_Map &map, bool verbose)
int MultiVectorTests(const Epetra_Map &Map, int NumVectors, 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 Broadcast(double *MyVals, int Count, int Root) const
Epetra_SerialComm Broadcast function.
int four_quads(const Epetra_Comm &Comm, bool preconstruct_graph, bool verbose)