|
IPCC
1.0
|
This class for parsing input command file. More...
#include "CommandFileParser.h"

Classes | |
| struct | INPUT_CMD_PARAM |
| Structure for save input command file parsing result. More... | |
Public Types | |
| typedef struct CCommandFileParser::INPUT_CMD_PARAM * | LPINPUT_CMD_PARAM |
Public Member Functions | |
| CCommandFileParser () | |
| ~CCommandFileParser () | |
Static Public Member Functions | |
| static LPINPUT_CMD_PARAM | ParsingInputCommand (char *pszInputCommnadFileName) |
| Parsing Commaind file. More... | |
Static Private Member Functions | |
| static void | GetValueAfterEqualString (char *pszOption, char *pszValue) |
| Extracting string after equal charater postion. More... | |
| static void | SetOptionParam (LPINPUT_CMD_PARAM lpParam, char *pszOption, int nHash, int nOptIndex) |
| Setting option variable. More... | |
| static void | TrimString (char *pszBuffer) |
| Trim string using white spapce including ' '. More... | |
| static void | TrimStringEx (char *pszBuffer) |
| Trim string using white spapce not including ' '. More... | |
| static void | TrimSpaceEdge (char *pszBuffer) |
| Trim space both side of string. More... | |
| static void | ExtractParam (char *pszBuffer, double *pParam, int nParamSize) |
| Extracing paramter in string. More... | |
| static void | InitializeInputData (LPINPUT_CMD_PARAM lpParam) |
| Initialize some default parameter. More... | |
| static unsigned int | ExtractOptionIndex (char *pszBuffer, int nHash, int nOptIndex) |
| Get Number of Index. ex) Geometry_Origin(1)=[ 0 0 0 ], -> Get '1' from option string. More... | |
This class for parsing input command file.
Definition at line 14 of file CommandFileParser.h.
| typedef struct CCommandFileParser::INPUT_CMD_PARAM * CCommandFileParser::LPINPUT_CMD_PARAM |
| CCommandFileParser::CCommandFileParser | ( | ) |
Definition at line 47 of file CommandFileParser.cpp.
| CCommandFileParser::~CCommandFileParser | ( | ) |
Definition at line 51 of file CommandFileParser.cpp.
|
staticprivate |
Get Number of Index. ex) Geometry_Origin(1)=[ 0 0 0 ], -> Get '1' from option string.
| pszBuffer | Target string |
| nHash | Hash value |
| nOptIndex | Option index |
Definition at line 671 of file CommandFileParser.cpp.
References g_inputOption.
Referenced by SetOptionParam().

|
staticprivate |
Extracing paramter in string.
| pszBuffer | String buffer that want to extract parameters | |
| [out] | pParam | Buffer for saving parmeters |
| nParamSize | Count that want to extract |
Definition at line 124 of file CommandFileParser.cpp.
Referenced by SetOptionParam().

|
staticprivate |
Extracting string after equal charater postion.
| pszOption | String that include parameter | |
| [out] | pszValue | Data buffer for saving option value |
Definition at line 525 of file CommandFileParser.cpp.
Referenced by SetOptionParam().

|
staticprivate |
Initialize some default parameter.
| lpParam | parameter structure for initialization |
Definition at line 595 of file CommandFileParser.cpp.
References CCommandFileParser::INPUT_CMD_PARAM::bCalculateEigenVectors, CCommandFileParser::INPUT_CMD_PARAM::bCalculateWaveFunction, CCommandFileParser::INPUT_CMD_PARAM::bConsiderBoundaryCondition, CCommandFileParser::INPUT_CMD_PARAM::bConsiderNeumannBoundaryCondition, CCommandFileParser::INPUT_CMD_PARAM::bDoSelectiveReorthogonalization, CCommandFileParser::INPUT_CMD_PARAM::bMappingZBtoCB, CCommandFileParser::INPUT_CMD_PARAM::bNeedRotate, BOX_SHAPE, CCommandFileParser::INPUT_CMD_PARAM::bSaveContactBiasVector, CCommandFileParser::INPUT_CMD_PARAM::bSaveHamiltonian, CCommandFileParser::INPUT_CMD_PARAM::bSaveMapFile, CCommandFileParser::INPUT_CMD_PARAM::bSaveWaveVector, CCommandFileParser::INPUT_CMD_PARAM::fCGConvergenceCriteria, CCommandFileParser::INPUT_CMD_PARAM::fConvergeceCriteria, CCommandFileParser::INPUT_CMD_PARAM::fDirection, CCommandFileParser::INPUT_CMD_PARAM::fevMax, CCommandFileParser::INPUT_CMD_PARAM::fevMin, CCommandFileParser::INPUT_CMD_PARAM::fKPoints, CCommandFileParser::INPUT_CMD_PARAM::fKValueFinal, CCommandFileParser::INPUT_CMD_PARAM::fKValueInit, CCommandFileParser::INPUT_CMD_PARAM::fOrigin, CCommandFileParser::INPUT_CMD_PARAM::fShapeLength, CCommandFileParser::INPUT_CMD_PARAM::fUnitcellLength, CCommandFileParser::INPUT_CMD_PARAM::load_in_MIC, CCommandFileParser::INPUT_CMD_PARAM::nBandSize, CCommandFileParser::INPUT_CMD_PARAM::nCGIterationCount, CCommandFileParser::INPUT_CMD_PARAM::nCheckCGInterval, CCommandFileParser::INPUT_CMD_PARAM::nCheckEigenvalueInterval, CCommandFileParser::INPUT_CMD_PARAM::nContactNumber, CCommandFileParser::INPUT_CMD_PARAM::nDirectionSingle, CCommandFileParser::INPUT_CMD_PARAM::nFindingDegeneratedEVCount, CCommandFileParser::INPUT_CMD_PARAM::nFindingEigenValueCount, CCommandFileParser::INPUT_CMD_PARAM::nLanczosIterationCount, CCommandFileParser::INPUT_CMD_PARAM::nMPILevel, CCommandFileParser::INPUT_CMD_PARAM::nShape, CCommandFileParser::INPUT_CMD_PARAM::nSubDomainNumber, CCommandFileParser::INPUT_CMD_PARAM::szDomainMat, CCommandFileParser::INPUT_CMD_PARAM::szShape, and CCommandFileParser::INPUT_CMD_PARAM::szStructureType.
Referenced by ParsingInputCommand().

|
static |
Parsing Commaind file.
| pszInputCommnadFileName | Command file name |
Definition at line 533 of file CommandFileParser.cpp.
References g_inputOption, HASH_SARP, InitializeInputData(), MAX_INPUTOPTION_HASH_NUMBER, SetOptionParam(), and CCommandFileParser::INPUT_CMD_PARAM::szDataFileName.
Referenced by InitEnvironment(), and CTBMS_Solver::Launching_TBMS_Solver().


|
staticprivate |
Setting option variable.
| [out] | lpParam | Result of parsing |
| pszOption | String that including options | |
| nHash | Hash index A to # | |
| nOptIndex | Sub index in save Hash |
< A
< B
< C
<Added by jhkang CG conv. criteria and check interval
<Added by="" jhkang="" end>="">
< D
< E
< F
< G
< K
< L
< M
<Added by="" jhkang>="">
<Added by="" jhkang="" end>="">
< N
<Added by="" jhkang>="">
<Added by="" jhkang="" end>="">
< P
< R
< S
< W
< Z
Definition at line 149 of file CommandFileParser.cpp.
References _X, _Y, _Z, CCommandFileParser::INPUT_CMD_PARAM::bCalculateEigenVectors, CCommandFileParser::INPUT_CMD_PARAM::bCalculateWaveFunction, CCommandFileParser::INPUT_CMD_PARAM::bConsiderBoundaryCondition, CCommandFileParser::INPUT_CMD_PARAM::bConsiderNeumannBoundaryCondition, CCommandFileParser::INPUT_CMD_PARAM::bDoSelectiveReorthogonalization, CCommandFileParser::INPUT_CMD_PARAM::bMappingZBtoCB, CCommandFileParser::INPUT_CMD_PARAM::bNeedRotate, BOX_CONTACT, BOX_SHAPE, CCommandFileParser::INPUT_CMD_PARAM::bSaveContactBiasVector, CCommandFileParser::INPUT_CMD_PARAM::bSaveHamiltonian, CCommandFileParser::INPUT_CMD_PARAM::bSaveMapFile, CCommandFileParser::INPUT_CMD_PARAM::bSaveWaveVector, CCommandFileParser::INPUT_CMD_PARAM::bSortBeforeCSRBuilding, CIRCLE_CONTACT, CYLINDER_SHAPE, ExtractOptionIndex(), ExtractParam(), CCommandFileParser::INPUT_CMD_PARAM::fCGConvergenceCriteria, CCommandFileParser::INPUT_CMD_PARAM::fContactBias, CCommandFileParser::INPUT_CMD_PARAM::fContactLength, CCommandFileParser::INPUT_CMD_PARAM::fContactOrigin, CCommandFileParser::INPUT_CMD_PARAM::fConvergeceCriteria, CCommandFileParser::INPUT_CMD_PARAM::fDirection, CCommandFileParser::INPUT_CMD_PARAM::fevMax, CCommandFileParser::INPUT_CMD_PARAM::fevMin, CCommandFileParser::INPUT_CMD_PARAM::fKPoints, CCommandFileParser::INPUT_CMD_PARAM::fKValueFinal, CCommandFileParser::INPUT_CMD_PARAM::fKValueInit, CCommandFileParser::INPUT_CMD_PARAM::fOrigin, CCommandFileParser::INPUT_CMD_PARAM::fShapeLength, CCommandFileParser::INPUT_CMD_PARAM::fUnitcellLength, GetValueAfterEqualString(), CCommandFileParser::INPUT_CMD_PARAM::load_in_MIC, CCommandFileParser::INPUT_CMD_PARAM::nBandSize, CCommandFileParser::INPUT_CMD_PARAM::nCGIterationCount, CCommandFileParser::INPUT_CMD_PARAM::nCheckCGInterval, CCommandFileParser::INPUT_CMD_PARAM::nCheckEigenvalueInterval, CCommandFileParser::INPUT_CMD_PARAM::nContactNumber, CCommandFileParser::INPUT_CMD_PARAM::nContactShape, CCommandFileParser::INPUT_CMD_PARAM::nDirectionSingle, CCommandFileParser::INPUT_CMD_PARAM::nFindingDegeneratedEVCount, CCommandFileParser::INPUT_CMD_PARAM::nFindingEigenValueCount, CCommandFileParser::INPUT_CMD_PARAM::nLanczosIterationCount, CCommandFileParser::INPUT_CMD_PARAM::nMatrixDemension, CCommandFileParser::INPUT_CMD_PARAM::nMatrixNonzeroElementCount, CCommandFileParser::INPUT_CMD_PARAM::nMPILevel, CCommandFileParser::INPUT_CMD_PARAM::nShape, CCommandFileParser::INPUT_CMD_PARAM::nSubDomainNumber, CCommandFileParser::INPUT_CMD_PARAM::szContactMaterial, CCommandFileParser::INPUT_CMD_PARAM::szContactShape, CCommandFileParser::INPUT_CMD_PARAM::szDataFileName, CCommandFileParser::INPUT_CMD_PARAM::szDomainMat, CCommandFileParser::INPUT_CMD_PARAM::szShape, CCommandFileParser::INPUT_CMD_PARAM::szStructureType, TrimSpaceEdge(), TrimString(), and TrimStringEx().
Referenced by ParsingInputCommand().


|
staticprivate |
Trim space both side of string.
| pszBuffer | String buffer that want to trim |
Definition at line 96 of file CommandFileParser.cpp.
Referenced by SetOptionParam().

|
staticprivate |
Trim string using white spapce including ' '.
| pszBuffer | String buffer that want to trim |
Definition at line 58 of file CommandFileParser.cpp.
Referenced by SetOptionParam().

|
staticprivate |
Trim string using white spapce not including ' '.
| pszBuffer | String buffer that want to trim |
Definition at line 77 of file CommandFileParser.cpp.
Referenced by SetOptionParam().
