FEI Package Browser (Single Doxygen Collection)
Version of the Day
|
#include <snl_fei_tester.hpp>
Public Member Functions | |
snl_fei_tester (fei::SharedPtr< DataReader > data_reader, MPI_Comm comm, int localProc, int numProcs) | |
~snl_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 | |
void | defineFieldsAndIDTypes () |
int | initElemBlocks () |
int | loadElemBlocks () |
int | initConstraints () |
int | loadConstraints () |
void | definePattern (ElemBlock &eb, int &patternID) |
int | createLibraryInstance (const char *solverName) |
int | save_block_node_soln (DataReader &data, fei::Vector *vec, const char *solnFileName, int numProcs, int localProc, int solveCounter) |
int | save_block_elem_soln (DataReader &data, fei::Vector *vec, const char *solnFileName, int numProcs, int localProc, int solveCounter) |
int | save_multiplier_soln (DataReader &data, fei::Vector *vec, 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) |
Private Attributes | |
MPI_Comm | comm_ |
fei::SharedPtr< fei::Factory > | factory_ |
fei::SharedPtr< fei::VectorSpace > | vecSpace_ |
fei::SharedPtr< fei::MatrixGraph > | matrixGraph_ |
fei::SharedPtr< fei::Matrix > | A_ |
fei::SharedPtr< fei::Vector > | x_ |
fei::SharedPtr< fei::Vector > | b_ |
fei::SharedPtr< fei::LinearSystem > | linSys_ |
LinearSystemCore * | linSysCore_ |
FiniteElementData * | feData_ |
fei::SharedPtr< DataReader > | data_ |
std::vector< int > | idTypes_ |
int | numPatterns_ |
int | nodeTypeOffset_ |
int | elemTypeOffset_ |
int | constraintTypeOffset_ |
int | localProc_ |
int | numProcs_ |
Additional Inherited Members | |
Protected Attributes inherited from feitester | |
std::string | path_ |
Definition at line 21 of file snl_fei_tester.hpp.
snl_fei_tester::snl_fei_tester | ( | fei::SharedPtr< DataReader > | data_reader, |
MPI_Comm | comm, | ||
int | localProc, | ||
int | numProcs | ||
) |
Definition at line 31 of file snl_fei_tester.cpp.
snl_fei_tester::~snl_fei_tester | ( | ) |
Definition at line 52 of file snl_fei_tester.cpp.
References feData_, and linSysCore_.
|
inlinevirtual |
Method to obtain a name describing this test.
Implements feitester.
Definition at line 27 of file snl_fei_tester.hpp.
|
virtual |
Implements feitester.
Definition at line 59 of file snl_fei_tester.cpp.
References fei::ParameterSet::add(), fei::utils::char_ptrs_to_strings(), CHK_ERR, comm_, fei::console_out(), fei::create_fei_Factory(), fei::MatrixGraph::Factory::createMatrixGraph(), fei::VectorSpace::Factory::createVectorSpace(), data_, defineFieldsAndIDTypes(), ERReturn, factory_, FEI_ENDL, fei::SharedPtr< T >::get(), idTypes_, fei::MatrixGraph::initComplete(), initConstraints(), initElemBlocks(), fei::VectorSpace::initSharedIDs(), matrixGraph_, CommNodeSet::nodeIDs_, nodeTypeOffset_, CommNodeSet::numNodes_, DataReader::numParams_, DataReader::numSharedNodeSets_, fei::Factory::parameters(), DataReader::paramStrings_, fei::utils::parse_strings(), feitester::path_, CommNodeSet::procs_, CommNodeSet::procsPerNode_, fei::MatrixGraph::setParameters(), fei::VectorSpace::setParameters(), DataReader::sharedNodeSets_, DataReader::solverLibraryName_, and vecSpace_.
|
virtual |
Implements feitester.
Definition at line 142 of file snl_fei_tester.cpp.
References A_, b_, DataReader::bcNodeSets_, fei::utils::char_ptrs_to_strings(), CHK_ERR, fei::LinearSystem::Factory::createLinearSystem(), fei::Matrix::Factory::createMatrix(), fei::MatrixGraph::createSlaveMatrices(), fei::Vector::Factory::createVector(), data_, factory_, BCNodeSet::fieldID_, DataReader::getFieldSize(), idTypes_, linSys_, fei::LinearSystem::loadComplete(), loadConstraints(), loadElemBlocks(), fei::LinearSystem::loadEssentialBCs(), matrixGraph_, BCNodeSet::nodeIDs_, nodeTypeOffset_, DataReader::numBCNodeSets_, BCNodeSet::numNodes_, DataReader::numParams_, BCNodeSet::offsetsIntoField_, fei::LinearSystem::parameters(), fei::Matrix::parameters(), DataReader::paramStrings_, fei::utils::parse_strings(), fei::MatrixGraph::POINT_ENTRY_GRAPH, BCNodeSet::prescribed_values_, fei::Matrix::putScalar(), fei::Vector::putScalar(), fei::MatrixGraph::setIndicesMode(), fei::LinearSystem::setMatrix(), fei::LinearSystem::setRHS(), fei::LinearSystem::setSolutionVector(), and x_.
|
virtual |
Implements feitester.
Definition at line 195 of file snl_fei_tester.cpp.
References fei::utils::char_ptrs_to_strings(), CHK_ERR, fei::Solver::Factory::createSolver(), data_, factory_, fei::SharedPtr< T >::get(), linSys_, DataReader::numParams_, DataReader::paramStrings_, fei::utils::parse_strings(), fei::Vector::scatterToOverlap(), fei::Solver::solve(), and x_.
|
virtual |
Implements feitester.
Definition at line 215 of file snl_fei_tester.cpp.
References DataReader::checkFileName_, SolnCheck::checkSolution(), CHK_ERR, comm_, data_, fei::SharedPtr< T >::get(), localProc_, MPI_SUCCESS, numProcs_, save_block_elem_soln(), save_block_node_soln(), save_multiplier_soln(), DataReader::solnFileName_, and x_.
|
virtual |
Implements feitester.
Definition at line 118 of file snl_fei_tester.cpp.
References A_, FEI_OSTRINGSTREAM, numProcs_, fei::Matrix::typeName(), and fei::Matrix::writeToFile().
|
virtual |
Implements feitester.
Definition at line 127 of file snl_fei_tester.cpp.
References A_, fei::utils::char_ptrs_to_strings(), factory_, linSys_, matrixGraph_, fei::LinearSystem::parameters(), fei::Matrix::parameters(), fei::Factory::parameters(), fei::utils::parse_strings(), fei::MatrixGraph::setParameters(), fei::VectorSpace::setParameters(), and vecSpace_.
|
private |
Definition at line 244 of file snl_fei_tester.cpp.
References constraintTypeOffset_, data_, fei::VectorSpace::defineFields(), fei::VectorSpace::defineIDTypes(), elemTypeOffset_, DataReader::fieldIDs_, DataReader::fieldSizes_, idTypes_, nodeTypeOffset_, DataReader::numFields_, and vecSpace_.
Referenced by testInitialization().
|
private |
Definition at line 265 of file snl_fei_tester.cpp.
References ElemBlock::blockID_, CHK_ERR, data_, definePattern(), DataReader::elemBlocks_, ElemBlock::elemConn_, ElemBlock::elemIDs_, fei::MatrixGraph::initConnectivity(), fei::MatrixGraph::initConnectivityBlock(), matrixGraph_, DataReader::numElemBlocks_, ElemBlock::numElements_, and ElemBlock::numNodesPerElement_.
Referenced by testInitialization().
|
private |
Definition at line 293 of file snl_fei_tester.cpp.
References A_, b_, ElemBlock::blockID_, CHK_ERR, data_, DataReader::elemBlocks_, ElemBlock::elemIDs_, ElemBlock::elemLoad_, ElemBlock::elemStiff_, ERReturn, fei::MatrixGraph::getConnectivityIndices(), fei::MatrixGraph::getConnectivityNumIndices(), matrixGraph_, DataReader::numElemBlocks_, ElemBlock::numElements_, fei::Vector::sumIn(), and fei::Matrix::sumIn().
Referenced by testLoading().
|
private |
Definition at line 330 of file snl_fei_tester.cpp.
References CHK_ERR, constraintTypeOffset_, CRSet::crID_, DataReader::crMultSets_, DataReader::crPenSets_, data_, DataReader::fieldIDs_, CRSet::fieldIDs_, DataReader::fieldSizes_, idTypes_, fei::MatrixGraph::initLagrangeConstraint(), fei::MatrixGraph::initPenaltyConstraint(), fei::MatrixGraph::initSlaveConstraint(), localProc_, matrixGraph_, CRSet::nodeIDs_, nodeTypeOffset_, DataReader::numCRMultSets_, DataReader::numCRPenSets_, DataReader::numFields_, CRSet::numNodes_, DataReader::numSlaveVars_, CRSet::slaveFieldID_, CRSet::slaveNodeID_, CRSet::slaveOffset_, DataReader::slaveVars_, CRSet::values_, and CRSet::weights_.
Referenced by testInitialization().
|
private |
Definition at line 420 of file snl_fei_tester.cpp.
References CHK_ERR, CRSet::crID_, DataReader::crMultSets_, DataReader::crPenSets_, data_, linSys_, fei::LinearSystem::loadLagrangeConstraint(), fei::LinearSystem::loadPenaltyConstraint(), DataReader::numCRMultSets_, DataReader::numCRPenSets_, CRSet::penValues_, CRSet::values_, and CRSet::weights_.
Referenced by testLoading().
|
private |
Definition at line 448 of file snl_fei_tester.cpp.
References fei::MatrixGraph::definePattern(), ElemBlock::elemDOFFieldIDs_, elemTypeOffset_, idTypes_, matrixGraph_, ElemBlock::nodalFieldIDs_, nodeTypeOffset_, ElemBlock::numElemDOF_, ElemBlock::numFieldsPerNode_, ElemBlock::numNodesPerElement_, numPatterns_, and fei::sortedListInsert().
Referenced by initElemBlocks().
|
private |
|
private |
Definition at line 503 of file snl_fei_tester.cpp.
References CHK_ERR, fei::console_out(), fei::Vector::copyOutFieldData(), ERReturn, FEI_COUT, FEI_ENDL, FEI_OFSTREAM, FEI_OSTRINGSTREAM, fei::VectorSpace::getFields(), fei::VectorSpace::getFieldSize(), fei::VectorSpace::getNumDegreesOfFreedom(), fei::VectorSpace::getNumFields(), fei::VectorSpace::getNumOwnedAndSharedIDs(), fei::VectorSpace::getOwnedAndSharedIDs(), idTypes_, IOS_FLOATFIELD, IOS_SCIENTIFIC, fei::localProc(), nodeTypeOffset_, and vecSpace_.
Referenced by testCheckResult().
|
private |
Definition at line 570 of file snl_fei_tester.cpp.
References CHK_ERR, fei::console_out(), fei::Vector::copyOutFieldData(), elemTypeOffset_, ERReturn, FEI_ENDL, FEI_OFSTREAM, FEI_OSTRINGSTREAM, fei::VectorSpace::getFields(), fei::VectorSpace::getFieldSize(), fei::VectorSpace::getNumDegreesOfFreedom(), fei::VectorSpace::getNumFields(), fei::VectorSpace::getNumOwnedAndSharedIDs(), fei::VectorSpace::getOwnedAndSharedIDs(), idTypes_, fei::localProc(), and vecSpace_.
Referenced by testCheckResult().
|
private |
Definition at line 631 of file snl_fei_tester.cpp.
References CHK_ERR, comm_, fei::console_out(), constraintTypeOffset_, fei::Vector::copyOut(), ERReturn, FEI_ENDL, FEI_OFSTREAM, FEI_OSTRINGSTREAM, fei::VectorSpace::getGlobalIndex(), fei::VectorSpace::getNumOwnedAndSharedIDs(), fei::VectorSpace::getOwnedAndSharedIDs(), idTypes_, fei::localProc(), MPI_SUCCESS, fei::numProcs(), and vecSpace_.
Referenced by testCheckResult().
|
private |
|
private |
Definition at line 70 of file snl_fei_tester.hpp.
Referenced by save_multiplier_soln(), testCheckResult(), and testInitialization().
|
private |
Definition at line 72 of file snl_fei_tester.hpp.
Referenced by setParameter(), testInitialization(), testLoading(), and testSolve().
|
private |
Definition at line 74 of file snl_fei_tester.hpp.
Referenced by defineFieldsAndIDTypes(), save_block_elem_soln(), save_block_node_soln(), save_multiplier_soln(), setParameter(), and testInitialization().
|
private |
Definition at line 75 of file snl_fei_tester.hpp.
Referenced by definePattern(), initConstraints(), initElemBlocks(), loadElemBlocks(), setParameter(), testInitialization(), and testLoading().
|
private |
Definition at line 77 of file snl_fei_tester.hpp.
Referenced by dumpMatrixFiles(), loadElemBlocks(), setParameter(), and testLoading().
|
private |
Definition at line 78 of file snl_fei_tester.hpp.
Referenced by testCheckResult(), testLoading(), and testSolve().
|
private |
Definition at line 79 of file snl_fei_tester.hpp.
Referenced by loadElemBlocks(), and testLoading().
|
private |
Definition at line 81 of file snl_fei_tester.hpp.
Referenced by loadConstraints(), setParameter(), testLoading(), and testSolve().
|
private |
Definition at line 83 of file snl_fei_tester.hpp.
Referenced by ~snl_fei_tester().
|
private |
Definition at line 84 of file snl_fei_tester.hpp.
Referenced by ~snl_fei_tester().
|
private |
Definition at line 86 of file snl_fei_tester.hpp.
Referenced by defineFieldsAndIDTypes(), initConstraints(), initElemBlocks(), loadConstraints(), loadElemBlocks(), testCheckResult(), testInitialization(), testLoading(), and testSolve().
|
private |
Definition at line 88 of file snl_fei_tester.hpp.
Referenced by defineFieldsAndIDTypes(), definePattern(), initConstraints(), save_block_elem_soln(), save_block_node_soln(), save_multiplier_soln(), testInitialization(), and testLoading().
|
private |
Definition at line 89 of file snl_fei_tester.hpp.
Referenced by definePattern().
|
private |
Definition at line 90 of file snl_fei_tester.hpp.
Referenced by defineFieldsAndIDTypes(), definePattern(), initConstraints(), save_block_node_soln(), testInitialization(), and testLoading().
|
private |
Definition at line 90 of file snl_fei_tester.hpp.
Referenced by defineFieldsAndIDTypes(), definePattern(), and save_block_elem_soln().
|
private |
Definition at line 90 of file snl_fei_tester.hpp.
Referenced by defineFieldsAndIDTypes(), initConstraints(), and save_multiplier_soln().
|
private |
Definition at line 92 of file snl_fei_tester.hpp.
Referenced by initConstraints(), and testCheckResult().
|
private |
Definition at line 92 of file snl_fei_tester.hpp.
Referenced by dumpMatrixFiles(), and testCheckResult().