FEI Package Browser (Single Doxygen Collection)
Version of the Day
|
#include <DataReader.hpp>
Public Member Functions | |
DataReader () | |
~DataReader () | |
int | readData (const char *fileName) |
int | getFieldSize (int fieldID) |
void | readData (FEI_ISTREAM *instr, char *keyword) |
Static Public Member Functions | |
static int | getKeyword (FEI_ISTREAM *instr, char *&keyword) |
static void | readData (FEI_ISTREAM *instr, int &n) |
static void | readData (FEI_ISTREAM *instr, double &val) |
static int | is_reg_char (char c) |
static int | skipWhite (FEI_ISTREAM *instr) |
Public Attributes | |
int | solveType_ |
std::string | solverLibraryName_ |
std::string | solnFileName_ |
std::string | checkFileName_ |
int | numFields_ |
int * | fieldIDs_ |
int * | fieldSizes_ |
int | numParams_ |
char ** | paramStrings_ |
int | numElemBlocks_ |
ElemBlock * | elemBlocks_ |
int | numCoefAccessPatterns_ |
AccessPattern * | accessPatterns_ |
int | numCoefAccesses_ |
CoefAccess * | coefAccesses_ |
int | numCRMultSets_ |
CRSet * | crMultSets_ |
int | numSlaveVars_ |
CRSet * | slaveVars_ |
int | numCRPenSets_ |
CRSet * | crPenSets_ |
int | numBCNodeSets_ |
BCNodeSet * | bcNodeSets_ |
int | numSharedNodeSets_ |
CommNodeSet * | sharedNodeSets_ |
Private Member Functions | |
void | deleteMemory () |
Private Attributes | |
bool | numFieldsRead_ |
bool | numElemBlocksRead_ |
int | currentElemBlockIndex_ |
int | currentElemIndex_ |
int | currentShIndex_ |
int | currentExtIndex_ |
int | currentBCIndex_ |
Definition at line 21 of file DataReader.hpp.
DataReader::DataReader | ( | ) |
Definition at line 22 of file DataReader.cpp.
DataReader::~DataReader | ( | ) |
Definition at line 58 of file DataReader.cpp.
References deleteMemory(), numElemBlocksRead_, and numFieldsRead_.
int DataReader::readData | ( | const char * | fileName | ) |
Definition at line 103 of file DataReader.cpp.
References fei::console_out(), FEI_ENDL, FEI_IFSTREAM, and getKeyword().
Referenced by readData(), and test_FEI::test1().
int DataReader::getFieldSize | ( | int | fieldID | ) |
Definition at line 815 of file DataReader.cpp.
References fei::console_out(), FEI_ENDL, fieldIDs_, fieldSizes_, and numFields_.
Referenced by readData(), and snl_fei_tester::testLoading().
|
static |
void DataReader::readData | ( | FEI_ISTREAM * | instr, |
char * | keyword | ||
) |
Definition at line 190 of file DataReader.cpp.
References accessPatterns_, bcNodeSets_, ElemBlock::blockID_, coefAccesses_, CoefAccess::coefs_, AccessPattern::colFieldIDs_, CoefAccess::colIDs_, fei::console_out(), crMultSets_, crPenSets_, currentBCIndex_, currentElemBlockIndex_, currentElemIndex_, currentShIndex_, elemBlocks_, ElemBlock::elemConn_, ElemBlock::elemDOFFieldIDs_, ElemBlock::elemFormat_, ElemBlock::elemIDs_, ElemBlock::elemLoad_, ElemBlock::elemStiff_, FEI_COUT, FEI_ENDL, BCNodeSet::fieldID_, fieldIDs_, CRSet::fieldIDs_, fieldSizes_, getFieldSize(), AccessPattern::ID_, ElemBlock::interleaveStrategy_, AccessPattern::interleaveStrategy_, ElemBlock::nodalFieldIDs_, CommNodeSet::nodeIDs_, BCNodeSet::nodeIDs_, CRSet::nodeIDs_, numBCNodeSets_, numCoefAccesses_, numCoefAccessPatterns_, CoefAccess::numColCoefs_, AccessPattern::numColIDsPerRow_, CoefAccess::numColIDsPerRow_, numCRMultSets_, numCRPenSets_, numElemBlocks_, numElemBlocksRead_, ElemBlock::numElemDOF_, ElemBlock::numElements_, numFields_, AccessPattern::numFieldsPerCol_, ElemBlock::numFieldsPerNode_, AccessPattern::numFieldsPerRow_, numFieldsRead_, CommNodeSet::numNodes_, BCNodeSet::numNodes_, CRSet::numNodes_, ElemBlock::numNodesPerElement_, numParams_, CoefAccess::numRowCoefs_, AccessPattern::numRowIDs_, CoefAccess::numRowIDs_, numSharedNodeSets_, numSlaveVars_, ElemBlock::numStiffRows_, BCNodeSet::offsetsIntoField_, paramStrings_, CoefAccess::patternID_, CRSet::penValues_, BCNodeSet::prescribed_values_, CommNodeSet::procs_, CommNodeSet::procsPerNode_, readData(), AccessPattern::rowFieldIDs_, CoefAccess::rowIDs_, sharedNodeSets_, skipWhite(), CRSet::slaveFieldID_, CRSet::slaveNodeID_, CRSet::slaveOffset_, slaveVars_, solveType_, CRSet::values_, and CRSet::weights_.
|
static |
Definition at line 826 of file DataReader.cpp.
References skipWhite().
|
static |
Definition at line 833 of file DataReader.cpp.
References skipWhite().
|
static |
Definition at line 151 of file DataReader.cpp.
Referenced by skipWhite().
|
static |
Definition at line 159 of file DataReader.cpp.
References is_reg_char().
Referenced by getKeyword(), and readData().
|
private |
Definition at line 66 of file DataReader.cpp.
References accessPatterns_, bcNodeSets_, coefAccesses_, crMultSets_, crPenSets_, elemBlocks_, fieldIDs_, fieldSizes_, numBCNodeSets_, numCoefAccesses_, numCoefAccessPatterns_, numCRMultSets_, numCRPenSets_, numElemBlocks_, numFields_, numParams_, numSharedNodeSets_, numSlaveVars_, paramStrings_, sharedNodeSets_, and slaveVars_.
Referenced by ~DataReader().
int DataReader::solveType_ |
Definition at line 28 of file DataReader.hpp.
Referenced by FEI_tester::initializationPhase(), readData(), FEI_tester::testInitialization(), and FEI_tester::testLoading().
std::string DataReader::solverLibraryName_ |
Definition at line 30 of file DataReader.hpp.
Referenced by FEI_tester::exerciseResidualNorm(), FEI_tester::save_multiplier_soln(), test_FEI::test1(), FEI_tester::testCheckResult(), snl_fei_tester::testInitialization(), FEI_tester::testInitialization(), and FEI_tester::testSolve().
std::string DataReader::solnFileName_ |
Definition at line 31 of file DataReader.hpp.
Referenced by FEI_tester::lsc_matrix_check(), test_FEI::test1(), snl_fei_tester::testCheckResult(), and FEI_tester::testCheckResult().
std::string DataReader::checkFileName_ |
Definition at line 32 of file DataReader.hpp.
Referenced by FEI_tester::lsc_matrix_check(), test_FEI::test1(), snl_fei_tester::testCheckResult(), and FEI_tester::testCheckResult().
int DataReader::numFields_ |
Definition at line 34 of file DataReader.hpp.
Referenced by snl_fei_tester::defineFieldsAndIDTypes(), deleteMemory(), FEI_tester::exercisePutFunctions(), FEI_tester::exerciseResidualNorm(), getFieldSize(), snl_fei_tester::initConstraints(), FEI_tester::initializationPhase(), readData(), and FEI_tester::save_block_node_soln().
int* DataReader::fieldIDs_ |
Definition at line 35 of file DataReader.hpp.
Referenced by snl_fei_tester::defineFieldsAndIDTypes(), deleteMemory(), FEI_tester::exercisePutFunctions(), FEI_tester::exerciseResidualNorm(), getFieldSize(), snl_fei_tester::initConstraints(), FEI_tester::initializationPhase(), and readData().
int* DataReader::fieldSizes_ |
Definition at line 36 of file DataReader.hpp.
Referenced by snl_fei_tester::defineFieldsAndIDTypes(), deleteMemory(), FEI_tester::exercisePutFunctions(), getFieldSize(), snl_fei_tester::initConstraints(), FEI_tester::initializationPhase(), readData(), and FEI_tester::save_block_node_soln().
int DataReader::numParams_ |
Definition at line 38 of file DataReader.hpp.
Referenced by deleteMemory(), readData(), FEI_tester::setIDlists(), test_FEI::test1(), snl_fei_tester::testInitialization(), FEI_tester::testInitialization(), snl_fei_tester::testLoading(), and snl_fei_tester::testSolve().
char** DataReader::paramStrings_ |
Definition at line 39 of file DataReader.hpp.
Referenced by deleteMemory(), readData(), FEI_tester::setIDlists(), test_FEI::test1(), snl_fei_tester::testInitialization(), FEI_tester::testInitialization(), snl_fei_tester::testLoading(), and snl_fei_tester::testSolve().
int DataReader::numElemBlocks_ |
Definition at line 41 of file DataReader.hpp.
Referenced by FEI_tester::aggregateLoadPhase(), deleteMemory(), snl_fei_tester::initElemBlocks(), FEI_tester::initializationPhase(), snl_fei_tester::loadElemBlocks(), FEI_tester::normalLoadPhase(), readData(), FEI_tester::save_block_elem_soln(), and FEI_tester::testInitialization().
ElemBlock* DataReader::elemBlocks_ |
Definition at line 42 of file DataReader.hpp.
Referenced by FEI_tester::aggregateLoadPhase(), deleteMemory(), snl_fei_tester::initElemBlocks(), FEI_tester::initializationPhase(), snl_fei_tester::loadElemBlocks(), FEI_tester::normalLoadPhase(), readData(), FEI_tester::save_block_elem_soln(), and FEI_tester::testInitialization().
int DataReader::numCoefAccessPatterns_ |
Definition at line 44 of file DataReader.hpp.
Referenced by deleteMemory(), and readData().
AccessPattern* DataReader::accessPatterns_ |
Definition at line 45 of file DataReader.hpp.
Referenced by deleteMemory(), and readData().
int DataReader::numCoefAccesses_ |
Definition at line 47 of file DataReader.hpp.
Referenced by deleteMemory(), and readData().
CoefAccess* DataReader::coefAccesses_ |
Definition at line 48 of file DataReader.hpp.
Referenced by deleteMemory(), and readData().
int DataReader::numCRMultSets_ |
Definition at line 50 of file DataReader.hpp.
Referenced by deleteMemory(), snl_fei_tester::initConstraints(), FEI_tester::initializationPhase(), snl_fei_tester::loadConstraints(), FEI_tester::normalLoadPhase(), and readData().
CRSet* DataReader::crMultSets_ |
Definition at line 51 of file DataReader.hpp.
Referenced by deleteMemory(), snl_fei_tester::initConstraints(), FEI_tester::initializationPhase(), snl_fei_tester::loadConstraints(), FEI_tester::normalLoadPhase(), and readData().
int DataReader::numSlaveVars_ |
Definition at line 53 of file DataReader.hpp.
Referenced by deleteMemory(), snl_fei_tester::initConstraints(), FEI_tester::initializationPhase(), and readData().
CRSet* DataReader::slaveVars_ |
Definition at line 54 of file DataReader.hpp.
Referenced by deleteMemory(), snl_fei_tester::initConstraints(), FEI_tester::initializationPhase(), and readData().
int DataReader::numCRPenSets_ |
Definition at line 56 of file DataReader.hpp.
Referenced by deleteMemory(), snl_fei_tester::initConstraints(), FEI_tester::initializationPhase(), snl_fei_tester::loadConstraints(), FEI_tester::normalLoadPhase(), and readData().
CRSet* DataReader::crPenSets_ |
Definition at line 57 of file DataReader.hpp.
Referenced by deleteMemory(), snl_fei_tester::initConstraints(), FEI_tester::initializationPhase(), snl_fei_tester::loadConstraints(), FEI_tester::normalLoadPhase(), and readData().
int DataReader::numBCNodeSets_ |
Definition at line 59 of file DataReader.hpp.
Referenced by FEI_tester::aggregateLoadPhase(), deleteMemory(), FEI_tester::normalLoadPhase(), readData(), and snl_fei_tester::testLoading().
BCNodeSet* DataReader::bcNodeSets_ |
Definition at line 60 of file DataReader.hpp.
Referenced by FEI_tester::aggregateLoadPhase(), deleteMemory(), FEI_tester::normalLoadPhase(), readData(), and snl_fei_tester::testLoading().
int DataReader::numSharedNodeSets_ |
Definition at line 62 of file DataReader.hpp.
Referenced by deleteMemory(), FEI_tester::initializationPhase(), readData(), and snl_fei_tester::testInitialization().
CommNodeSet* DataReader::sharedNodeSets_ |
Definition at line 63 of file DataReader.hpp.
Referenced by deleteMemory(), FEI_tester::initializationPhase(), readData(), and snl_fei_tester::testInitialization().
|
private |
Definition at line 78 of file DataReader.hpp.
Referenced by readData(), and ~DataReader().
|
private |
Definition at line 79 of file DataReader.hpp.
Referenced by readData(), and ~DataReader().
|
private |
Definition at line 80 of file DataReader.hpp.
Referenced by readData().
|
private |
Definition at line 81 of file DataReader.hpp.
Referenced by readData().
|
private |
Definition at line 83 of file DataReader.hpp.
Referenced by readData().
|
private |
Definition at line 84 of file DataReader.hpp.
|
private |
Definition at line 85 of file DataReader.hpp.
Referenced by readData().