FEI Package Browser (Single Doxygen Collection)
Version of the Day
|
#include <test_Matrix.hpp>
Public Member Functions | |
test_Matrix (MPI_Comm comm) | |
virtual | ~test_Matrix () |
const char * | getName () |
int | runtests () |
fei::SharedPtr< fei::Matrix > | create_matrix (fei::SharedPtr< fei::Factory > factory) |
void | matrix_test1 (fei::SharedPtr< fei::Matrix > mat) |
int | test1 () |
int | test2 () |
int | test3 () |
int | test4 () |
int | serialtest1 () |
int | serialtest2 () |
int | serialtest3 () |
Public Member Functions inherited from tester | |
tester (MPI_Comm comm) | |
virtual | ~tester () |
void | setPath (const std::string &path) |
Additional Inherited Members | |
Protected Attributes inherited from tester | |
MPI_Comm | comm_ |
int | numProcs_ |
int | localProc_ |
std::string | path_ |
Unit-tester for snl_fei::Matrix.
Definition at line 24 of file test_Matrix.hpp.
test_Matrix::test_Matrix | ( | MPI_Comm | comm | ) |
Definition at line 277 of file test_Matrix.cpp.
|
virtual |
Definition at line 282 of file test_Matrix.cpp.
|
inlinevirtual |
|
virtual |
Implements tester.
Definition at line 286 of file test_Matrix.cpp.
References tester::comm_, fei::create_fei_Factory(), create_matrix(), FEI_COUT, FEI_ENDL, tester::localProc_, and matrix_test1().
fei::SharedPtr< fei::Matrix > test_Matrix::create_matrix | ( | fei::SharedPtr< fei::Factory > | factory | ) |
Definition at line 320 of file test_Matrix.cpp.
References tester::comm_, test_VectorSpace::create_VectorSpace(), fei::Matrix::Factory::createMatrix(), fei::MatrixGraph::Factory::createMatrixGraph(), fei::MatrixGraph::definePattern(), FEI_COUT, FEI_ENDL, testData::fieldIDs, testData::ids, testData::idTypes, fei::VectorSpace::initComplete(), fei::MatrixGraph::initComplete(), fei::MatrixGraph::initConnectivity(), fei::MatrixGraph::initConnectivityBlock(), tester::localProc_, and tester::numProcs_.
Referenced by main(), and runtests().
void test_Matrix::matrix_test1 | ( | fei::SharedPtr< fei::Matrix > | mat | ) |
Definition at line 356 of file test_Matrix.cpp.
References FEI_COUT, FEI_ENDL, fei::VectorSpace::getGlobalIndexOffsets(), fei::VectorSpace::getGlobalNumIndices(), fei::Matrix::getGlobalNumRows(), fei::Matrix::getLocalNumRows(), fei::Matrix::getMatrixGraph(), fei::Matrix::getRowLength(), fei::MatrixGraph::getRowSpace(), tester::localProc_, and fei::Matrix::typeName().
Referenced by main(), and runtests().
int test_Matrix::test1 | ( | ) |
Definition at line 612 of file test_Matrix.cpp.
int test_Matrix::test2 | ( | ) |
Definition at line 617 of file test_Matrix.cpp.
int test_Matrix::test3 | ( | ) |
Definition at line 622 of file test_Matrix.cpp.
References CHK_ERR, tester::comm_, test_MatrixGraph::create_MatrixGraph(), test_VectorSpace::create_VectorSpace(), ERReturn, fei::Matrix::gatherFromOverlap(), fei::SharedPtr< T >::get(), fei::MatrixGraph::getConnectivityIndices(), fei::MatrixGraph::getConnectivityNumIndices(), testData::ids, testData::idTypes, fei::MatrixGraph::initComplete(), FiniteElementData::loadComplete(), tester::localProc_, MPI_Barrier, tester::numProcs_, FiniteElementData::parameters(), and fei::Matrix::sumIn().
int test_Matrix::test4 | ( | ) |
Definition at line 693 of file test_Matrix.cpp.
int test_Matrix::serialtest1 | ( | ) |
Definition at line 397 of file test_Matrix.cpp.
References CHK_ERR, tester::comm_, fei::VectorSpace::defineFields(), fei::VectorSpace::defineIDTypes(), fei::MatrixGraph::definePattern(), ERReturn, testData::fieldIDs, testData::fieldSizes, fei::MatrixGraph::getConnectivityIndices(), fei::VectorSpace::getNumIndices_Owned(), fei::MatrixGraph::getRowSpace(), testData::ids, testData::idTypes, fei::MatrixGraph::initComplete(), fei::MatrixGraph::initConnectivity(), fei::MatrixGraph::initConnectivityBlock(), tester::localProc_, tester::numProcs_, and fei::Matrix::sumIn().
int test_Matrix::serialtest2 | ( | ) |
Definition at line 466 of file test_Matrix.cpp.
References CHK_ERR, tester::comm_, fei::VectorSpace::defineIDTypes(), fei::MatrixGraph::definePattern(), ERReturn, fei::VectorSpace::getNumIndices_Owned(), fei::MatrixGraph::getRowSpace(), testData::ids, testData::idTypes, fei::MatrixGraph::initComplete(), fei::MatrixGraph::initConnectivity(), fei::MatrixGraph::initConnectivityBlock(), tester::localProc_, tester::numProcs_, fei::Matrix::sumIn(), and fei::Matrix_Impl< T >::sumIn().
int test_Matrix::serialtest3 | ( | ) |
Definition at line 527 of file test_Matrix.cpp.
References CHK_ERR, tester::comm_, fei::VectorSpace::defineFields(), fei::VectorSpace::defineIDTypes(), fei::MatrixGraph::definePattern(), ERReturn, testData::fieldIDs, testData::fieldSizes, fei::VectorSpace::getNumIndices_Owned(), fei::MatrixGraph::getRowSpace(), testData::ids, testData::idTypes, fei::MatrixGraph::initComplete(), fei::MatrixGraph::initConnectivity(), fei::MatrixGraph::initConnectivityBlock(), fei::MatrixGraph::initSlaveConstraint(), tester::localProc_, tester::numProcs_, and fei::Matrix::sumIn().