6 int main(
int argc,
char**argv)
11 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
14 int NumMyEquations = 2;
18 for (
int i=0; i<NumMyEquations; ++i)
45 std::cout <<
"Frobenius norm (should be 1 with 2 or more processors): "
48 std::cout <<
"tests FAILED" << std::endl;
Epetra_Map: A class for partitioning vectors and matrices.
int InsertGlobalIndices(int numRows, const int *rows, int numCols, const int *cols)
Insert a rectangular, dense 'submatrix' of entries (matrix nonzero positions) into the graph...
int FillComplete()
Tranform to local index space. Perform other operations to allow optimal matrix operations.
Epetra Finite-Element CrsGraph.
int GlobalAssemble(bool callFillComplete=true)
Gather any overlapping/shared data into the non-overlapping partitioning defined by the Map that was ...
Epetra_MpiComm: The Epetra MPI Communication Class.
int FillComplete(bool OptimizeDataStorage=true)
Signal that data entry is complete. Perform transformations to local index space. ...
Epetra Finite-Element CrsMatrix.
int OptimizeStorage()
Make consecutive row index sections contiguous, minimize internal storage used for constructing graph...
int GlobalAssemble(bool callFillComplete=true, Epetra_CombineMode combineMode=Add, bool save_off_and_reuse_map_exporter=false)
Gather any overlapping/shared data into the non-overlapping partitioning defined by the Map that was ...
double NormFrobenius() const
Returns the frobenius norm of the global matrix.
int SumIntoGlobalValues(int GlobalRow, int NumEntries, const double *Values, const int *Indices)
override base-class Epetra_CrsMatrix::SumIntoGlobalValues method
int main(int argc, char *argv[])