FEI Package Browser (Single Doxygen Collection)
Version of the Day
|
#include <FEI_tester.hpp>
Public Member Functions | |
FEI_tester (fei::SharedPtr< DataReader > data_reader, MPI_Comm comm, int localProc, int numProcs, bool useNewFEI=false) | |
~FEI_tester () | |
const char * | getName () |
int | testInitialization () |
int | testLoading () |
int | testSolve () |
int | testCheckResult () |
void | dumpMatrixFiles () |
void | setParameter (const char *param) |
Public Member Functions inherited from feitester | |
feitester () | |
virtual | ~feitester () |
void | setPath (const std::string &path) |
void | setPath (const char *path) |
Private Member Functions | |
int | createFEIinstance (const char *solverName) |
int | setIDlists () |
int | initializationPhase () |
int | normalLoadPhase () |
int | aggregateLoadPhase () |
int | exerciseResidualNorm () |
int | exercisePutFunctions () |
int | save_block_node_soln (DataReader &data, FEI &fei, const char *solnFileName, int numProcs, int localProc, int solveCounter) |
int | save_block_elem_soln (DataReader &data, FEI &fei, const char *solnFileName, int numProcs, int localProc, int solveCounter) |
int | save_multiplier_soln (DataReader &data, FEI &fei, const char *solnFileName, int numProcs, int localProc, int solveCounter) |
int | checkSolution (int localProc, int numProcs, const char *solnFileName, const char *checkFileName, const char *extension, int solveCounter) |
int | lsc_matrix_check () |
Private Attributes | |
MPI_Comm | comm_ |
fei::SharedPtr< FEI > | fei_ |
fei::SharedPtr< LibraryWrapper > | wrapper_ |
fei::SharedPtr< DataReader > | data_ |
int | localProc_ |
int | numProcs_ |
int | numMatrices |
int * | matrixIDs |
int | numRHSs |
int * | rhsIDs |
bool | useNewFEI_ |
Additional Inherited Members | |
Protected Attributes inherited from feitester | |
std::string | path_ |
Definition at line 25 of file FEI_tester.hpp.
FEI_tester::FEI_tester | ( | fei::SharedPtr< DataReader > | data_reader, |
MPI_Comm | comm, | ||
int | localProc, | ||
int | numProcs, | ||
bool | useNewFEI = false |
||
) |
Definition at line 37 of file FEI_tester.cpp.
FEI_tester::~FEI_tester | ( | ) |
Definition at line 54 of file FEI_tester.cpp.
|
inlinevirtual |
Method to obtain a name describing this test.
Implements feitester.
Definition at line 31 of file FEI_tester.hpp.
|
virtual |
Implements feitester.
Definition at line 61 of file FEI_tester.cpp.
References ElemBlock::blockID_, CHK_ERR, createFEIinstance(), data_, DataReader::elemBlocks_, ERReturn, fei_, FEI_AGGREGATE_SUM, FEI_COUT, FEI_ENDL, fei::SharedPtr< T >::get(), FEI::getNumBlockActNodes(), initializationPhase(), DataReader::numElemBlocks_, DataReader::numParams_, FEI::parameters(), DataReader::paramStrings_, setIDlists(), DataReader::solverLibraryName_, DataReader::solveType_, and FEI::version().
|
virtual |
Implements feitester.
Definition at line 101 of file FEI_tester.cpp.
References aggregateLoadPhase(), CHK_ERR, data_, exercisePutFunctions(), exerciseResidualNorm(), fei_, FEI_AGGREGATE_SUM, FEI_SINGLE_SYSTEM, FEI::loadComplete(), normalLoadPhase(), FEI::resetMatrix(), FEI::resetRHSVector(), FEI::resetSystem(), and DataReader::solveType_.
|
virtual |
Implements feitester.
Definition at line 130 of file FEI_tester.cpp.
References CHK_ERR, data_, exerciseResidualNorm(), fei_, FEI_COUT, FEI_ENDL, FEI::iterations(), localProc_, FEI::solve(), and DataReader::solverLibraryName_.
|
virtual |
Implements feitester.
Definition at line 171 of file FEI_tester.cpp.
References DataReader::checkFileName_, SolnCheck::checkSolution(), CHK_ERR, comm_, data_, ERReturn, fei_, localProc_, lsc_matrix_check(), MPI_SUCCESS, numProcs_, save_block_elem_soln(), save_block_node_soln(), save_multiplier_soln(), DataReader::solnFileName_, and DataReader::solverLibraryName_.
|
virtual |
Implements feitester.
Definition at line 161 of file FEI_tester.cpp.
|
virtual |
Implements feitester.
Definition at line 166 of file FEI_tester.cpp.
|
private |
Definition at line 210 of file FEI_tester.cpp.
References comm_, fei::console_out(), fei::create_LibraryWrapper(), ERReturn, fei_, FEI_ENDL, FEI_Implementation, fei::SharedPtr< T >::get(), fei::SharedPtr< T >::reset(), useNewFEI_, and wrapper_.
Referenced by testInitialization().
|
private |
Definition at line 235 of file FEI_tester.cpp.
References CHK_ERR, data_, fei_, snl_fei::getIntParamValue(), matrixIDs, numMatrices, DataReader::numParams_, numRHSs, DataReader::paramStrings_, rhsIDs, and FEI::setIDLists().
Referenced by testInitialization().
|
private |
Definition at line 256 of file FEI_tester.cpp.
References ElemBlock::blockID_, CHK_ERR, CRSet::crID_, DataReader::crMultSets_, DataReader::crPenSets_, data_, DataReader::elemBlocks_, ElemBlock::elemConn_, ElemBlock::elemDOFFieldIDs_, ElemBlock::elemIDs_, fei_, FEI_AGGREGATE_SUM, FEI_COUT, FEI_ENDL, FEI_SINGLE_SYSTEM, DataReader::fieldIDs_, CRSet::fieldIDs_, DataReader::fieldSizes_, FEI::initComplete(), FEI::initCRMult(), FEI::initCRPen(), FEI::initElem(), FEI::initElemBlock(), FEI::initFields(), FEI::initSharedNodes(), FEI::initSlaveVariable(), ElemBlock::interleaveStrategy_, ElemBlock::nodalFieldIDs_, CommNodeSet::nodeIDs_, CRSet::nodeIDs_, DataReader::numCRMultSets_, DataReader::numCRPenSets_, DataReader::numElemBlocks_, ElemBlock::numElemDOF_, ElemBlock::numElements_, DataReader::numFields_, ElemBlock::numFieldsPerNode_, CommNodeSet::numNodes_, CRSet::numNodes_, ElemBlock::numNodesPerElement_, DataReader::numSharedNodeSets_, DataReader::numSlaveVars_, CommNodeSet::procs_, CommNodeSet::procsPerNode_, FEI::setSolveType(), DataReader::sharedNodeSets_, CRSet::slaveFieldID_, CRSet::slaveNodeID_, CRSet::slaveOffset_, DataReader::slaveVars_, DataReader::solveType_, CRSet::values_, and CRSet::weights_.
Referenced by testInitialization().
|
private |
Definition at line 339 of file FEI_tester.cpp.
References DataReader::bcNodeSets_, ElemBlock::blockID_, CHK_ERR, CRSet::crID_, DataReader::crMultSets_, DataReader::crPenSets_, data_, DataReader::elemBlocks_, ElemBlock::elemConn_, ElemBlock::elemFormat_, ElemBlock::elemIDs_, ElemBlock::elemLoad_, ElemBlock::elemStiff_, fei_, BCNodeSet::fieldID_, CRSet::fieldIDs_, FEI::loadCRMult(), FEI::loadCRPen(), FEI::loadNodeBCs(), BCNodeSet::nodeIDs_, CRSet::nodeIDs_, DataReader::numBCNodeSets_, DataReader::numCRMultSets_, DataReader::numCRPenSets_, DataReader::numElemBlocks_, ElemBlock::numElements_, BCNodeSet::numNodes_, CRSet::numNodes_, BCNodeSet::offsetsIntoField_, CRSet::penValues_, BCNodeSet::prescribed_values_, FEI::sumInElemMatrix(), FEI::sumInElemRHS(), CRSet::values_, and CRSet::weights_.
Referenced by testLoading().
|
private |
Definition at line 412 of file FEI_tester.cpp.
References DataReader::bcNodeSets_, ElemBlock::blockID_, CHK_ERR, data_, DataReader::elemBlocks_, ElemBlock::elemConn_, ElemBlock::elemFormat_, ElemBlock::elemIDs_, ElemBlock::elemLoad_, ElemBlock::elemStiff_, fei_, BCNodeSet::fieldID_, FEI::loadNodeBCs(), matrixIDs, BCNodeSet::nodeIDs_, DataReader::numBCNodeSets_, DataReader::numElemBlocks_, ElemBlock::numElements_, numMatrices, BCNodeSet::numNodes_, numRHSs, BCNodeSet::offsetsIntoField_, BCNodeSet::prescribed_values_, rhsIDs, FEI::setCurrentMatrix(), FEI::setCurrentRHS(), FEI::setMatScalars(), FEI::setRHSScalars(), FEI::sumInElemMatrix(), and FEI::sumInElemRHS().
Referenced by testLoading().
|
private |
Definition at line 476 of file FEI_tester.cpp.
References CHK_ERR, data_, fei_, DataReader::fieldIDs_, DataReader::numFields_, FEI::residualNorm(), and DataReader::solverLibraryName_.
Referenced by testLoading(), and testSolve().
|
private |
Definition at line 502 of file FEI_tester.cpp.
References CHK_ERR, data_, fei_, DataReader::fieldIDs_, DataReader::fieldSizes_, FEI::getLocalNodeIDList(), FEI::getNumLocalNodes(), DataReader::numFields_, and FEI::putNodalFieldData().
Referenced by testLoading().
|
private |
Definition at line 526 of file FEI_tester.cpp.
References CHK_ERR, ERReturn, FEI_COUT, FEI_ENDL, FEI_OFSTREAM, FEI_OSTRINGSTREAM, DataReader::fieldSizes_, FEI::getLocalNodeIDList(), FEI::getNodalSolution(), FEI::getNumLocalNodes(), IOS_FLOATFIELD, IOS_SCIENTIFIC, fei::localProc(), and DataReader::numFields_.
Referenced by testCheckResult().
|
private |
Definition at line 583 of file FEI_tester.cpp.
References ElemBlock::blockID_, CHK_ERR, DataReader::elemBlocks_, FEI_COUT, FEI_ENDL, FEI_OFSTREAM, FEI_OSTRINGSTREAM, FEI::getBlockElemIDList(), FEI::getBlockElemSolution(), FEI::getNumBlockElemDOF(), FEI::getNumBlockElements(), fei::localProc(), and DataReader::numElemBlocks_.
Referenced by testCheckResult().
|
private |
Definition at line 654 of file FEI_tester.cpp.
References CHK_ERR, comm_, data_, ERReturn, FEI_COUT, FEI_ENDL, FEI_OFSTREAM, FEI_OSTRINGSTREAM, FEI::getCRMultIDList(), FEI::getCRMultipliers(), FEI::getNumCRMultipliers(), fei::localProc(), MPI_SUCCESS, fei::numProcs(), and DataReader::solverLibraryName_.
Referenced by testCheckResult().
|
private |
|
private |
Definition at line 718 of file FEI_tester.cpp.
References DataReader::checkFileName_, CHK_ERR, SolnCheck::compareMatrices(), data_, fei_test_utils::dirname(), FEI_COUT, FEI_ENDL, FEI_OSTRINGSTREAM, localProc_, numProcs_, SolnCheck::readMatrix(), and DataReader::solnFileName_.
Referenced by testCheckResult().
|
private |
Definition at line 76 of file FEI_tester.hpp.
Referenced by createFEIinstance(), save_multiplier_soln(), and testCheckResult().
|
private |
Definition at line 78 of file FEI_tester.hpp.
Referenced by aggregateLoadPhase(), createFEIinstance(), exercisePutFunctions(), exerciseResidualNorm(), initializationPhase(), normalLoadPhase(), setIDlists(), testCheckResult(), testInitialization(), testLoading(), and testSolve().
|
private |
Definition at line 80 of file FEI_tester.hpp.
Referenced by createFEIinstance().
|
private |
Definition at line 82 of file FEI_tester.hpp.
Referenced by aggregateLoadPhase(), exercisePutFunctions(), exerciseResidualNorm(), initializationPhase(), lsc_matrix_check(), normalLoadPhase(), save_multiplier_soln(), setIDlists(), testCheckResult(), testInitialization(), testLoading(), and testSolve().
|
private |
Definition at line 84 of file FEI_tester.hpp.
Referenced by lsc_matrix_check(), testCheckResult(), and testSolve().
|
private |
Definition at line 84 of file FEI_tester.hpp.
Referenced by lsc_matrix_check(), and testCheckResult().
|
private |
Definition at line 86 of file FEI_tester.hpp.
Referenced by aggregateLoadPhase(), and setIDlists().
|
private |
Definition at line 87 of file FEI_tester.hpp.
Referenced by aggregateLoadPhase(), setIDlists(), and ~FEI_tester().
|
private |
Definition at line 88 of file FEI_tester.hpp.
Referenced by aggregateLoadPhase(), and setIDlists().
|
private |
Definition at line 89 of file FEI_tester.hpp.
Referenced by aggregateLoadPhase(), setIDlists(), and ~FEI_tester().
|
private |
Definition at line 90 of file FEI_tester.hpp.
Referenced by createFEIinstance().