71 #include "../epetra_test_err.h"
73 int main(
int argc,
char *argv[]) {
75 int i, ierr=0, returnierr=0;
81 MPI_Init(&argc,&argv);
84 MPI_Comm_size(MPI_COMM_WORLD, &size);
85 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
97 if (argc>1)
if (argv[1][0]==
'-' && argv[1][1]==
'v') verbose =
true;
105 if (!verbose) Comm.SetTracebackMode(0);
107 int MyPID = Comm.
MyPID();
110 bool verbose1 = verbose;
111 if( verbose ) verbose = (MyPID==0);
118 if( verbose1 ) cout << Comm << endl << flush;
120 int NumMyElements = 3;
121 int NumGlobalElements = NumProc*NumMyElements;
124 Epetra_Map Map( NumGlobalElements, NumMyElements, 0, Comm );
125 if( verbose1 ) cout << Map << endl << flush;
129 int PIDFac = 10*MyPID;
130 int index = PIDFac+2;
138 if( verbose1 ) cout << Graph << endl << flush;
173 vector<double> valA(3);
174 valA[0]=0; valA[1]=1; valA[2]=2;
Generates the symmetric RCM reordered version of a Epetra_CrsGraph.
std::string EpetraExt_Version()
Given an input Epetra_CrsGraph, a "overlapped" Epetra_CrsGraph is generated including rows associated...
int InsertGlobalIndices(int_type GlobalRow, int NumIndices, int_type *Indices)
int main(int argc, char **argv)
EpetraExt::LinearProblem_GraphTrans: Adaptation of a Epetra_CrsGraph Transform to a Epetra_LinearProb...
Given and input Epetra_LinearProblem, a "reindexed" version will be returned using the given NewRowMa...
int ReplaceMyValues(int MyRow, int NumEntries, const double *Values, const int *Indices)