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 | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
DataReader Class Reference

#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_
 
ElemBlockelemBlocks_
 
int numCoefAccessPatterns_
 
AccessPatternaccessPatterns_
 
int numCoefAccesses_
 
CoefAccesscoefAccesses_
 
int numCRMultSets_
 
CRSetcrMultSets_
 
int numSlaveVars_
 
CRSetslaveVars_
 
int numCRPenSets_
 
CRSetcrPenSets_
 
int numBCNodeSets_
 
BCNodeSetbcNodeSets_
 
int numSharedNodeSets_
 
CommNodeSetsharedNodeSets_
 

Private Member Functions

void deleteMemory ()
 

Private Attributes

bool numFieldsRead_
 
bool numElemBlocksRead_
 
int currentElemBlockIndex_
 
int currentElemIndex_
 
int currentShIndex_
 
int currentExtIndex_
 
int currentBCIndex_
 

Detailed Description

Definition at line 21 of file DataReader.hpp.

Constructor & Destructor Documentation

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

Member Function Documentation

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().

int DataReader::getKeyword ( FEI_ISTREAM instr,
char *&  keyword 
)
static

Definition at line 131 of file DataReader.cpp.

References skipWhite().

Referenced by readData().

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

void DataReader::readData ( FEI_ISTREAM instr,
int &  n 
)
static

Definition at line 826 of file DataReader.cpp.

References skipWhite().

void DataReader::readData ( FEI_ISTREAM instr,
double &  val 
)
static

Definition at line 833 of file DataReader.cpp.

References skipWhite().

int DataReader::is_reg_char ( char  c)
static

Definition at line 151 of file DataReader.cpp.

Referenced by skipWhite().

int DataReader::skipWhite ( FEI_ISTREAM instr)
static

Definition at line 159 of file DataReader.cpp.

References is_reg_char().

Referenced by getKeyword(), and readData().

void DataReader::deleteMemory ( )
private

Member Data Documentation

int DataReader::solveType_
std::string DataReader::solverLibraryName_
std::string DataReader::solnFileName_
std::string DataReader::checkFileName_
int DataReader::numFields_
int* DataReader::fieldIDs_
int* DataReader::fieldSizes_
int DataReader::numParams_
char** DataReader::paramStrings_
int DataReader::numElemBlocks_
ElemBlock* DataReader::elemBlocks_
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_
CRSet* DataReader::crMultSets_
int DataReader::numSlaveVars_
CRSet* DataReader::slaveVars_
int DataReader::numCRPenSets_
CRSet* DataReader::crPenSets_
int DataReader::numBCNodeSets_
BCNodeSet* DataReader::bcNodeSets_
int DataReader::numSharedNodeSets_
CommNodeSet* DataReader::sharedNodeSets_
bool DataReader::numFieldsRead_
private

Definition at line 78 of file DataReader.hpp.

Referenced by readData(), and ~DataReader().

bool DataReader::numElemBlocksRead_
private

Definition at line 79 of file DataReader.hpp.

Referenced by readData(), and ~DataReader().

int DataReader::currentElemBlockIndex_
private

Definition at line 80 of file DataReader.hpp.

Referenced by readData().

int DataReader::currentElemIndex_
private

Definition at line 81 of file DataReader.hpp.

Referenced by readData().

int DataReader::currentShIndex_
private

Definition at line 83 of file DataReader.hpp.

Referenced by readData().

int DataReader::currentExtIndex_
private

Definition at line 84 of file DataReader.hpp.

int DataReader::currentBCIndex_
private

Definition at line 85 of file DataReader.hpp.

Referenced by readData().


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