Epetra Package Browser (Single Doxygen Collection) Development
Loading...
Searching...
No Matches
Classes | Functions | Variables
epetra_test Namespace Reference

Classes

class  matrix_data
 matrix_data is a very simple data source to be used for filling test matrices. More...
 

Functions

void get_node_ids (int elem_id, int *node_ids)
 
bool global_check_for_flag_on_proc_0 (const char *flag, int numargs, char **strargs, const Epetra_Comm &comm)
 Check through a list of C-style string arguments searching for a specified flag on proc 0.
 
Epetra_Commcreate_comm (int argc, char **argv)
 If macro EPETRA_MPI is defined, call MPI_Init and then return new Epetra_MpiComm.
 
bool compare_matrices (const Epetra_CrsMatrix &A, const Epetra_CrsMatrix &B)
 Check whether the two CrsMatrix arguments have the same size, structure and coefs.
 
bool compare_matrices_LL (const Epetra_CrsMatrix &A, const Epetra_CrsMatrix &B)
 

Variables

static const int nodes_per_elem = 4
 

Function Documentation

◆ get_node_ids()

void epetra_test::get_node_ids ( int elem_id,
int * node_ids )

Definition at line 133 of file Epetra_matrix_data.cpp.

◆ global_check_for_flag_on_proc_0()

EPETRA_LIB_DLL_EXPORT bool epetra_test::global_check_for_flag_on_proc_0 ( const char * flag,
int numargs,
char ** strargs,
const Epetra_Comm & comm )

Check through a list of C-style string arguments searching for a specified flag on proc 0.

Case-sensitive search. return true on all procs if flag occurs in strargs, false on all procs if not.

Definition at line 54 of file Epetra_test_functions.cpp.

◆ create_comm()

EPETRA_LIB_DLL_EXPORT Epetra_Comm * epetra_test::create_comm ( int argc,
char ** argv )

If macro EPETRA_MPI is defined, call MPI_Init and then return new Epetra_MpiComm.

Otherwise, return new Epetra_SerialComm.

Definition at line 82 of file Epetra_test_functions.cpp.

◆ compare_matrices()

EPETRA_LIB_DLL_EXPORT bool epetra_test::compare_matrices ( const Epetra_CrsMatrix & A,
const Epetra_CrsMatrix & B )

Check whether the two CrsMatrix arguments have the same size, structure and coefs.

Definition at line 93 of file Epetra_test_functions.cpp.

◆ compare_matrices_LL()

bool epetra_test::compare_matrices_LL ( const Epetra_CrsMatrix & A,
const Epetra_CrsMatrix & B )

Definition at line 206 of file Epetra_test_functions.cpp.

Variable Documentation

◆ nodes_per_elem

const int epetra_test::nodes_per_elem = 4
static

Definition at line 131 of file Epetra_matrix_data.cpp.