FEI Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
snl_fei_tester Class Reference

#include <snl_fei_tester.hpp>

Inheritance diagram for snl_fei_tester:
Inheritance graph
[legend]

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::Factoryfactory_
 
fei::SharedPtr< fei::VectorSpacevecSpace_
 
fei::SharedPtr< fei::MatrixGraphmatrixGraph_
 
fei::SharedPtr< fei::MatrixA_
 
fei::SharedPtr< fei::Vectorx_
 
fei::SharedPtr< fei::Vectorb_
 
fei::SharedPtr< fei::LinearSystemlinSys_
 
LinearSystemCorelinSysCore_
 
FiniteElementDatafeData_
 
fei::SharedPtr< DataReaderdata_
 
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_
 

Detailed Description

Definition at line 21 of file snl_fei_tester.hpp.

Constructor & Destructor Documentation

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_.

Member Function Documentation

const char* snl_fei_tester::getName ( )
inlinevirtual

Method to obtain a name describing this test.

Implements feitester.

Definition at line 27 of file snl_fei_tester.hpp.

int snl_fei_tester::testInitialization ( )
virtual
int snl_fei_tester::testLoading ( )
virtual
int snl_fei_tester::testSolve ( )
virtual
int snl_fei_tester::testCheckResult ( )
virtual
void snl_fei_tester::dumpMatrixFiles ( )
virtual
void snl_fei_tester::setParameter ( const char *  param)
virtual
void snl_fei_tester::defineFieldsAndIDTypes ( )
private
int snl_fei_tester::initElemBlocks ( )
private
int snl_fei_tester::loadElemBlocks ( )
private
int snl_fei_tester::initConstraints ( )
private
int snl_fei_tester::loadConstraints ( )
private
void snl_fei_tester::definePattern ( ElemBlock eb,
int &  patternID 
)
private
int snl_fei_tester::createLibraryInstance ( const char *  solverName)
private
int snl_fei_tester::save_block_node_soln ( DataReader data,
fei::Vector vec,
const char *  solnFileName,
int  numProcs,
int  localProc,
int  solveCounter 
)
private
int snl_fei_tester::save_block_elem_soln ( DataReader data,
fei::Vector vec,
const char *  solnFileName,
int  numProcs,
int  localProc,
int  solveCounter 
)
private
int snl_fei_tester::save_multiplier_soln ( DataReader data,
fei::Vector vec,
const char *  solnFileName,
int  numProcs,
int  localProc,
int  solveCounter 
)
private
int snl_fei_tester::checkSolution ( int  localProc,
int  numProcs,
const char *  solnFileName,
const char *  checkFileName,
const char *  extension,
int  solveCounter 
)
private

Member Data Documentation

MPI_Comm snl_fei_tester::comm_
private

Definition at line 70 of file snl_fei_tester.hpp.

Referenced by save_multiplier_soln(), testCheckResult(), and testInitialization().

fei::SharedPtr<fei::Factory> snl_fei_tester::factory_
private

Definition at line 72 of file snl_fei_tester.hpp.

Referenced by setParameter(), testInitialization(), testLoading(), and testSolve().

fei::SharedPtr<fei::VectorSpace> snl_fei_tester::vecSpace_
private
fei::SharedPtr<fei::MatrixGraph> snl_fei_tester::matrixGraph_
private
fei::SharedPtr<fei::Matrix> snl_fei_tester::A_
private

Definition at line 77 of file snl_fei_tester.hpp.

Referenced by dumpMatrixFiles(), loadElemBlocks(), setParameter(), and testLoading().

fei::SharedPtr<fei::Vector> snl_fei_tester::x_
private

Definition at line 78 of file snl_fei_tester.hpp.

Referenced by testCheckResult(), testLoading(), and testSolve().

fei::SharedPtr<fei::Vector> snl_fei_tester::b_
private

Definition at line 79 of file snl_fei_tester.hpp.

Referenced by loadElemBlocks(), and testLoading().

fei::SharedPtr<fei::LinearSystem> snl_fei_tester::linSys_
private

Definition at line 81 of file snl_fei_tester.hpp.

Referenced by loadConstraints(), setParameter(), testLoading(), and testSolve().

LinearSystemCore* snl_fei_tester::linSysCore_
private

Definition at line 83 of file snl_fei_tester.hpp.

Referenced by ~snl_fei_tester().

FiniteElementData* snl_fei_tester::feData_
private

Definition at line 84 of file snl_fei_tester.hpp.

Referenced by ~snl_fei_tester().

fei::SharedPtr<DataReader> snl_fei_tester::data_
private
std::vector<int> snl_fei_tester::idTypes_
private
int snl_fei_tester::numPatterns_
private

Definition at line 89 of file snl_fei_tester.hpp.

Referenced by definePattern().

int snl_fei_tester::nodeTypeOffset_
private
int snl_fei_tester::elemTypeOffset_
private

Definition at line 90 of file snl_fei_tester.hpp.

Referenced by defineFieldsAndIDTypes(), definePattern(), and save_block_elem_soln().

int snl_fei_tester::constraintTypeOffset_
private
int snl_fei_tester::localProc_
private

Definition at line 92 of file snl_fei_tester.hpp.

Referenced by initConstraints(), and testCheckResult().

int snl_fei_tester::numProcs_
private

Definition at line 92 of file snl_fei_tester.hpp.

Referenced by dumpMatrixFiles(), and testCheckResult().


The documentation for this class was generated from the following files: