FEI Package Browser (Single Doxygen Collection)  Version of the Day
Public Member Functions | Private Member Functions | Private Attributes | List of all members
driverData Class Reference

#include <driverData.hpp>

Public Member Functions

 driverData ()
 
 ~driverData ()
 
int readData (const char *fileName)
 
int call_fei_method (const char *method, FEI *fei)
 
std::vector< const char * > & get_methodNames ()
 

Private Member Functions

int readData (FEI_ISTREAM *instr, char *keyword)
 
int getKeyword (FEI_ISTREAM *instr, char *&keyword)
 
int is_reg_char (char c)
 
int skipWhite (FEI_ISTREAM *instr)
 
int readData (FEI_ISTREAM *instr, int &n)
 
int readData (FEI_ISTREAM *instr, double &val)
 
int appendName (const char *name)
 

Private Attributes

std::vector< const char * > methodNames
 
char * temp_
 
int tempLen_
 
int solveType_
 
int initFields_numFields_
 
int * initFields_fieldSizes_
 
int * initFields_fieldIDs_
 
int initElemBlock_numInts_
 
int * initElemBlock_ints_
 
int * initElemBlock_fieldsPerNode_
 
int ** initElemBlock_fieldIDs_
 
int * initElemBlock_elemDofFieldIDs_
 
std::vector< initElem * > initElems_
 
int initElemCounter_
 
std::vector< sumInElem * > sumInElems_
 
int sumInElemCounter_
 
std::vector< sumInElem * > sumInElemMatrix_
 
int sumInElemMatrixCounter_
 
std::vector< sumInElem * > sumInElemRHS_
 
int sumInElemRHSCounter_
 
double resetSystem_
 
double resetMatrix_
 
double resetRHSVector_
 
double resetInitialGuess_
 
std::vector< nodeBC * > loadNodeBCs_
 
int loadNodeBCsCounter_
 
std::vector< initCR * > initCRMult_
 
int initCRMultCounter_
 
std::vector< loadCR * > loadCRMult_
 
int loadCRMultCounter_
 
std::vector< sharedNodes * > initSharedNodes_
 
int initSharedNodesCounter_
 
std::vector< parameters * > parameters_
 
int parametersCounter_
 
std::vector< setIDLists * > setIDLists_
 
int setIDListsCounter_
 
std::vector< int > setCurrentMatrix_
 
int setCurrentMatrixCounter_
 
std::vector< int > setCurrentRHS_
 
int setCurrentRHSCounter_
 
std::vector< putBlockFieldNodeSolution * > putBlockFieldNodeSolution_
 
int putBlockFieldNodeSolutionCounter_
 

Detailed Description

Definition at line 161 of file driverData.hpp.

Constructor & Destructor Documentation

◆ driverData()

driverData::driverData ( )

Definition at line 30 of file driverData.cpp.

References temp_, and tempLen_.

◆ ~driverData()

driverData::~driverData ( )

Member Function Documentation

◆ readData() [1/4]

int driverData::readData ( const char *  fileName)

Definition at line 105 of file driverData.cpp.

References fei::console_out(), FEI_COUT, FEI_ENDL, FEI_IFSTREAM, and getKeyword().

Referenced by feiDriver_main(), and readData().

◆ call_fei_method()

int driverData::call_fei_method ( const char *  method,
FEI fei 
)

call a named method on the FEI object.

Returns
error-code 0 if successful. negative if an error occurs, positive if the named method is un-recognized.

Definition at line 134 of file driverData.cpp.

References fei::console_out(), initCR::CRID, loadCR::CRID, loadCR::CRValue, initElem::elemBlockID, sumInElem::elemBlockID, putBlockFieldNodeSolution::elemBlockID, sumInElem::elemFormat, initElem::elemID, sumInElem::elemID, putBlockFieldNodeSolution::estimates, FEI_ENDL, putBlockFieldNodeSolution::fieldID, initCR::fieldIDs, loadCR::fieldIDs, initCRMult_, initCRMultCounter_, initElemBlock_elemDofFieldIDs_, initElemBlock_fieldIDs_, initElemBlock_fieldsPerNode_, initElemBlock_ints_, initElemCounter_, initElems_, initFields_fieldIDs_, initFields_fieldSizes_, initFields_numFields_, initSharedNodes_, initSharedNodesCounter_, sumInElem::load, loadCRMult_, loadCRMultCounter_, loadNodeBCs_, loadNodeBCsCounter_, setIDLists::matrixIDs, initElem::nodeIDs, sumInElem::nodeIDs, initCR::nodeIDs, loadCR::nodeIDs, sharedNodes::nodeIDs, putBlockFieldNodeSolution::nodeIDs, setIDLists::numMatrices, initCR::numNodes, loadCR::numNodes, sharedNodes::numNodes, putBlockFieldNodeSolution::numNodes, sharedNodes::numProcsPerNode, setIDLists::numRHSs, parameters_, parametersCounter_, parameters::paramList, putBlockFieldNodeSolution_, putBlockFieldNodeSolutionCounter_, resetInitialGuess_, resetMatrix_, resetRHSVector_, resetSystem_, setIDLists::rhsIDs, setCurrentMatrix_, setCurrentMatrixCounter_, setCurrentRHS_, setCurrentRHSCounter_, setIDLists_, setIDListsCounter_, sharedNodes::sharedProcIDs, solveType_, sumInElem::stiffness, sumInElemCounter_, sumInElemMatrix_, sumInElemMatrixCounter_, sumInElemRHS_, sumInElemRHSCounter_, sumInElems_, and loadCR::weights.

Referenced by feiDriver_main().

◆ get_methodNames()

std::vector<const char*>& driverData::get_methodNames ( )
inline

Definition at line 174 of file driverData.hpp.

References methodNames.

Referenced by feiDriver_main().

◆ readData() [2/4]

int driverData::readData ( FEI_ISTREAM instr,
char *  keyword 
)
private

Definition at line 358 of file driverData.cpp.

References nodeBC::alpha, appendName(), nodeBC::beta, CHK_ERR, initCR::CRID, loadCR::CRID, loadCR::CRValue, initElem::elemBlockID, sumInElem::elemBlockID, putBlockFieldNodeSolution::elemBlockID, sumInElem::elemFormat, initElem::elemID, sumInElem::elemID, putBlockFieldNodeSolution::estimates, nodeBC::fieldID, putBlockFieldNodeSolution::fieldID, initCR::fieldIDs, loadCR::fieldIDs, nodeBC::fieldSize, putBlockFieldNodeSolution::fieldSize, loadCR::fieldSizes, nodeBC::gamma, initCRMult_, initElemBlock_elemDofFieldIDs_, initElemBlock_fieldIDs_, initElemBlock_fieldsPerNode_, initElemBlock_ints_, initElemBlock_numInts_, initElems_, initFields_fieldIDs_, initFields_fieldSizes_, initFields_numFields_, initSharedNodes_, sumInElem::load, loadCRMult_, loadNodeBCs_, setIDLists::matrixIDs, initElem::nodeIDs, sumInElem::nodeIDs, nodeBC::nodeIDs, initCR::nodeIDs, loadCR::nodeIDs, sharedNodes::nodeIDs, putBlockFieldNodeSolution::nodeIDs, setIDLists::numMatrices, initElem::numNodes, sumInElem::numNodes, nodeBC::numNodes, initCR::numNodes, loadCR::numNodes, sharedNodes::numNodes, putBlockFieldNodeSolution::numNodes, sharedNodes::numProcsPerNode, setIDLists::numRHSs, sumInElem::numRows, parameters_, parameters::paramList, putBlockFieldNodeSolution_, readData(), resetInitialGuess_, resetMatrix_, resetRHSVector_, resetSystem_, setIDLists::rhsIDs, setCurrentMatrix_, setCurrentRHS_, setIDLists_, sharedNodes::sharedProcIDs, skipWhite(), solveType_, sumInElem::stiff1D, sumInElem::stiffness, sumInElemMatrix_, sumInElemRHS_, sumInElems_, and loadCR::weights.

◆ getKeyword()

int driverData::getKeyword ( FEI_ISTREAM instr,
char *&  keyword 
)
private

Definition at line 801 of file driverData.cpp.

References snl_fei::getParamValue(), skipWhite(), temp_, and tempLen_.

Referenced by readData().

◆ is_reg_char()

int driverData::is_reg_char ( char  c)
private

Definition at line 826 of file driverData.cpp.

Referenced by skipWhite().

◆ skipWhite()

int driverData::skipWhite ( FEI_ISTREAM instr)
private

Definition at line 834 of file driverData.cpp.

References is_reg_char().

Referenced by getKeyword(), and readData().

◆ readData() [3/4]

int driverData::readData ( FEI_ISTREAM instr,
int &  n 
)
private

Definition at line 865 of file driverData.cpp.

References skipWhite().

◆ readData() [4/4]

int driverData::readData ( FEI_ISTREAM instr,
double &  val 
)
private

Definition at line 873 of file driverData.cpp.

References skipWhite().

◆ appendName()

int driverData::appendName ( const char *  name)
private

Definition at line 792 of file driverData.cpp.

References methodNames.

Referenced by readData().

Member Data Documentation

◆ methodNames

std::vector<const char*> driverData::methodNames
private

Definition at line 186 of file driverData.hpp.

Referenced by appendName(), get_methodNames(), and ~driverData().

◆ temp_

char* driverData::temp_
private

Definition at line 187 of file driverData.hpp.

Referenced by driverData(), getKeyword(), and ~driverData().

◆ tempLen_

int driverData::tempLen_
private

Definition at line 188 of file driverData.hpp.

Referenced by driverData(), getKeyword(), and ~driverData().

◆ solveType_

int driverData::solveType_
private

Definition at line 190 of file driverData.hpp.

Referenced by call_fei_method(), and readData().

◆ initFields_numFields_

int driverData::initFields_numFields_
private

Definition at line 192 of file driverData.hpp.

Referenced by call_fei_method(), and readData().

◆ initFields_fieldSizes_

int* driverData::initFields_fieldSizes_
private

Definition at line 193 of file driverData.hpp.

Referenced by call_fei_method(), readData(), and ~driverData().

◆ initFields_fieldIDs_

int* driverData::initFields_fieldIDs_
private

Definition at line 194 of file driverData.hpp.

Referenced by call_fei_method(), readData(), and ~driverData().

◆ initElemBlock_numInts_

int driverData::initElemBlock_numInts_
private

Definition at line 196 of file driverData.hpp.

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

◆ initElemBlock_ints_

int* driverData::initElemBlock_ints_
private

Definition at line 197 of file driverData.hpp.

Referenced by call_fei_method(), readData(), and ~driverData().

◆ initElemBlock_fieldsPerNode_

int* driverData::initElemBlock_fieldsPerNode_
private

Definition at line 198 of file driverData.hpp.

Referenced by call_fei_method(), readData(), and ~driverData().

◆ initElemBlock_fieldIDs_

int** driverData::initElemBlock_fieldIDs_
private

Definition at line 199 of file driverData.hpp.

Referenced by call_fei_method(), readData(), and ~driverData().

◆ initElemBlock_elemDofFieldIDs_

int* driverData::initElemBlock_elemDofFieldIDs_
private

Definition at line 200 of file driverData.hpp.

Referenced by call_fei_method(), and readData().

◆ initElems_

std::vector<initElem*> driverData::initElems_
private

Definition at line 202 of file driverData.hpp.

Referenced by call_fei_method(), readData(), and ~driverData().

◆ initElemCounter_

int driverData::initElemCounter_
private

Definition at line 203 of file driverData.hpp.

Referenced by call_fei_method().

◆ sumInElems_

std::vector<sumInElem*> driverData::sumInElems_
private

Definition at line 205 of file driverData.hpp.

Referenced by call_fei_method(), readData(), and ~driverData().

◆ sumInElemCounter_

int driverData::sumInElemCounter_
private

Definition at line 206 of file driverData.hpp.

Referenced by call_fei_method().

◆ sumInElemMatrix_

std::vector<sumInElem*> driverData::sumInElemMatrix_
private

Definition at line 208 of file driverData.hpp.

Referenced by call_fei_method(), readData(), and ~driverData().

◆ sumInElemMatrixCounter_

int driverData::sumInElemMatrixCounter_
private

Definition at line 209 of file driverData.hpp.

Referenced by call_fei_method().

◆ sumInElemRHS_

std::vector<sumInElem*> driverData::sumInElemRHS_
private

Definition at line 211 of file driverData.hpp.

Referenced by call_fei_method(), readData(), and ~driverData().

◆ sumInElemRHSCounter_

int driverData::sumInElemRHSCounter_
private

Definition at line 212 of file driverData.hpp.

Referenced by call_fei_method().

◆ resetSystem_

double driverData::resetSystem_
private

Definition at line 214 of file driverData.hpp.

Referenced by call_fei_method(), and readData().

◆ resetMatrix_

double driverData::resetMatrix_
private

Definition at line 215 of file driverData.hpp.

Referenced by call_fei_method(), and readData().

◆ resetRHSVector_

double driverData::resetRHSVector_
private

Definition at line 216 of file driverData.hpp.

Referenced by call_fei_method(), and readData().

◆ resetInitialGuess_

double driverData::resetInitialGuess_
private

Definition at line 217 of file driverData.hpp.

Referenced by call_fei_method(), and readData().

◆ loadNodeBCs_

std::vector<nodeBC*> driverData::loadNodeBCs_
private

Definition at line 219 of file driverData.hpp.

Referenced by call_fei_method(), readData(), and ~driverData().

◆ loadNodeBCsCounter_

int driverData::loadNodeBCsCounter_
private

Definition at line 220 of file driverData.hpp.

Referenced by call_fei_method().

◆ initCRMult_

std::vector<initCR*> driverData::initCRMult_
private

Definition at line 222 of file driverData.hpp.

Referenced by call_fei_method(), readData(), and ~driverData().

◆ initCRMultCounter_

int driverData::initCRMultCounter_
private

Definition at line 223 of file driverData.hpp.

Referenced by call_fei_method().

◆ loadCRMult_

std::vector<loadCR*> driverData::loadCRMult_
private

Definition at line 225 of file driverData.hpp.

Referenced by call_fei_method(), readData(), and ~driverData().

◆ loadCRMultCounter_

int driverData::loadCRMultCounter_
private

Definition at line 226 of file driverData.hpp.

Referenced by call_fei_method().

◆ initSharedNodes_

std::vector<sharedNodes*> driverData::initSharedNodes_
private

Definition at line 228 of file driverData.hpp.

Referenced by call_fei_method(), readData(), and ~driverData().

◆ initSharedNodesCounter_

int driverData::initSharedNodesCounter_
private

Definition at line 229 of file driverData.hpp.

Referenced by call_fei_method().

◆ parameters_

std::vector<parameters*> driverData::parameters_
private

Definition at line 231 of file driverData.hpp.

Referenced by call_fei_method(), readData(), and ~driverData().

◆ parametersCounter_

int driverData::parametersCounter_
private

Definition at line 232 of file driverData.hpp.

Referenced by call_fei_method().

◆ setIDLists_

std::vector<setIDLists*> driverData::setIDLists_
private

Definition at line 234 of file driverData.hpp.

Referenced by call_fei_method(), readData(), and ~driverData().

◆ setIDListsCounter_

int driverData::setIDListsCounter_
private

Definition at line 235 of file driverData.hpp.

Referenced by call_fei_method().

◆ setCurrentMatrix_

std::vector<int> driverData::setCurrentMatrix_
private

Definition at line 237 of file driverData.hpp.

Referenced by call_fei_method(), and readData().

◆ setCurrentMatrixCounter_

int driverData::setCurrentMatrixCounter_
private

Definition at line 238 of file driverData.hpp.

Referenced by call_fei_method().

◆ setCurrentRHS_

std::vector<int> driverData::setCurrentRHS_
private

Definition at line 240 of file driverData.hpp.

Referenced by call_fei_method(), and readData().

◆ setCurrentRHSCounter_

int driverData::setCurrentRHSCounter_
private

Definition at line 241 of file driverData.hpp.

Referenced by call_fei_method().

◆ putBlockFieldNodeSolution_

std::vector<putBlockFieldNodeSolution*> driverData::putBlockFieldNodeSolution_
private

Definition at line 243 of file driverData.hpp.

Referenced by call_fei_method(), and readData().

◆ putBlockFieldNodeSolutionCounter_

int driverData::putBlockFieldNodeSolutionCounter_
private

Definition at line 244 of file driverData.hpp.

Referenced by call_fei_method().


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