Isorropia: Partitioning, Load Balancing and more
Namespaces | Functions
ispatest_epetra_utils.hpp File Reference
#include <Isorropia_ConfigDefs.hpp>
#include <string>
#include <vector>
#include <ostream>
Include dependency graph for ispatest_epetra_utils.hpp:

Go to the source code of this file.

Namespaces

 ispatest
 ispatest is the namespace that contains isorropia's test-utilities.
 

Functions

int ispatest::fill_matrix (Epetra_CrsMatrix &matrix, int numNonzerosPerRow, bool verbose)
 Fill a matrix with the specified number of nonzeros per row, using matrix.InsertGlobalValues. More...
 
int ispatest::fill_graph (Epetra_CrsGraph &graph, int numNonzerosPerRow, bool verbose)
 Fill a graph with the specified number of nonzeros per row. More...
 
bool ispatest::test_matrix_vector_multiply (Epetra_CrsMatrix &A)
 Verify that a matrix is a valid Epetra_CrsMatrix by attempting to multiply with it. More...
 
bool ispatest::test_row_matrix_vector_multiply (Epetra_RowMatrix &R)
 Verify that a matrix is a valid Epetra_RowMatrix by attempting to multiply with it. More...
 
bool ispatest::test_matrix_vector_multiply (Epetra_CrsGraph &G)
 Verify that a matrix is a valid Epetra_CrsGraph by attempting to multiply with it. More...
 
bool ispatest::test_matrix_vector_multiply (Epetra_LinearProblem &LP)
 Verify that the Epetra_RowMatrix in a Epetra_LinearProblem is valid by attempting to multiply with it. More...
 
Epetra_Map * ispatest::map_from_blockmap (const Epetra_BlockMap &b)
 Method to create an Epetra_Map from an Epetra_BlockMap, when using methods that require an Epetra_Map but you only have an Epetra_BlockMap. More...
 
int ispatest::readCoordFile (const std::string &fname, std::vector< double > &x, std::vector< double > &y, std::vector< double > &z)
 Read in the file "fname". More...
 
Epetra_MultiVector * ispatest::makeWeights (const Epetra_BlockMap &map, double(*wFunc)(const int, const int, const int, const int))
 Create a multivector of 1 dimensional weights with the same distribution as the supplied map. More...
 
double ispatest::unitWeights (const int id, const int me, const int nids, const int nprocs)
 A function for makeWeights, returns 1.0 for the object's weight. More...
 
double ispatest::veeWeights (const int id, const int me, const int nids, const int nprocs)
 A function for makeWeights, weight is based on global ID, lower in the middle and higher at both ends. More...
 
double ispatest::alternateWeights (const int id, const int me, const int nids, const int nprocs)
 A function for makeWeights, weights alternate 1.0, 2.0, 1.0, etc. More...
 
Epetra_MultiVector * ispatest::file2multivector (const Epetra_Comm &comm, const std::string &fname)
 Read in a file of 1, 2 or 3 dimensional coordinates and create a multivector with a standard linear distribution. More...
 
int ispatest::printMultiVector (const Epetra_MultiVector &mv, std::ostream &os, const char *s, int max=1000)
 Print out the contents of the multivector by process, with optional title. More...
 
int ispatest::printRowMatrix (const Epetra_RowMatrix &m, std::ostream &os, const char *s, bool withGraphCuts, int max=1000)
 Print out the contents of a small Epetra_RowMatrix, with optional title. More...