|
IPCC
1.0
|
This class includes functions for matrix debugging. More...
#include "Utility.h"

Public Member Functions | |
| CUtility () | |
| ~CUtility () | |
Static Public Member Functions | |
| static void | ShowDoubleMatrix (double *pMatrix, int m, int n, int startm, int endm, int startn, int endn, char *pszDebugMsg) |
| Show matrix in output debugging windows - Visual studio and Windows DebugView only. More... | |
| static void | ShowDoubleArray (double *vector, char *pszDebugMsg, int due) |
| Show double array. More... | |
| static void | ShowDoubleVector (CMatrixOperation::CVector vector, char *pszDebugMsg, int due=-1) |
| static void | ShowComplex (CComplex number, char *pszDebugMsg) |
| Show vector class. More... | |
| static void | ShowDouble (double number, char *pszDebugMsg) |
| Show one double data. More... | |
| static void | ShowMsg (char *pszBuffer) |
| Show message. More... | |
| static void | SaveResult (CLanczosMethod::LPEIGENVALUE_RESULT lpResult, int nIndex) |
| Show lanczos method result. More... | |
| static void | SetShow (bool bShow) |
| static void | ShowCSR (CMatrixOperation::CCSR *pCSR, char *pszDebugMsg) |
| Set show message or not. More... | |
| static void | ShowCSR (CMatrixOperation::CCSR *pCSR, int startm, int endm, int startn, int endn, char *pszDebugMsg) |
| Show CSR matrix partialy. More... | |
| static void | ShowDenseMatrix (CMatrixOperation::CDMatrix *pMatrix, int startm, int endm, int startn, int endn, char *pszDebugMsg, bool bLineFeed=false, bool bShowImaginary=false) |
| Show matrix partialy. More... | |
| static void | DumpCSR (CMatrixOperation::CCSR *pCSR, char *pszFileName, double fAtomIDStartIndex) |
| static void | DumpCSR (CMatrixOperation::CCSR *pCSR, char *pszFileName, double fAtomIDStartIndex, int nRowPerAtom) |
| <Added by="" jhkang>=""> More... | |
| static void | ConvertLower (char *pszBuffer) |
| <Added by="" jhkang="" end>=""> More... | |
| static void | getCurrentTime (char *pszBuffer) |
| Get Current time from system. More... | |
| static void | GetKValues (CCommandFileParser::LPINPUT_CMD_PARAM lpParam, double *pKValue[3]) |
| Calculate K value with K points. More... | |
Static Private Attributes | |
| static bool | m_bShowMsg = false |
| Flag for display message. More... | |
This class includes functions for matrix debugging.
| CUtility::CUtility | ( | ) |
Definition at line 23 of file Utility.cpp.
| CUtility::~CUtility | ( | ) |
Definition at line 27 of file Utility.cpp.
|
static |
<Added by="" jhkang="" end>="">
Convert string to lower case
| pszBuffer[in/out] | Target string to convert to lower case |
Definition at line 415 of file Utility.cpp.
Referenced by CMaterialParam::BuildMaterialParam().

|
static |
Dump CSR to text file
| pCSR | CSR matrix |
| pszFileName | Save file name |
| fAtomIDStartIndex | Start index in shape |
Definition at line 296 of file Utility.cpp.
References CMPIManager::GetCurrentRank(), CMatrixOperation::CCSR::GetRowCount(), CMPIManager::GetTotalNodeCount(), CMPIManager::IsDeflationRoot(), CMPIManager::IsRootRank(), CMatrixOperation::CCSR::m_vectColumn, CMatrixOperation::CCSR::m_vectRow, CMatrixOperation::CCSR::m_vectValueImaginaryBuffer, CMatrixOperation::CCSR::m_vectValueRealBuffer, CMPIManager::ReceiveDoubleBufferSync(), and CMPIManager::SendDoubleBufferSync().
Referenced by CSPLoop::BuildHamiltonian(), and CTBMS_Solver::Launching_TBMS_Solver().


|
static |
<Added by="" jhkang>="">
<Added by="" jhkang="" end>="">
Dump CSR to text file
Definition at line 355 of file Utility.cpp.
References CMPIManager::GetCurrentRank(), CMatrixOperation::CCSR::GetRowCount(), CMPIManager::GetTotalNodeCount(), CMPIManager::IsRootRank(), CMatrixOperation::CCSR::m_vectColumn, CMatrixOperation::CCSR::m_vectRow, CMatrixOperation::CCSR::m_vectValueImaginaryBuffer, CMatrixOperation::CCSR::m_vectValueRealBuffer, CMPIManager::ReceiveDoubleBufferSync(), and CMPIManager::SendDoubleBufferSync().

|
static |
Get Current time from system.
| pszBuffer[out] | Charater buffer that want to save string that include time information |
Definition at line 430 of file Utility.cpp.
|
static |
Calculate K value with K points.
| lpParam | Option parameters for program launching |
| pKValue[out] | Buffer for saving k values |
Definition at line 445 of file Utility.cpp.
References CCommandFileParser::INPUT_CMD_PARAM::fKPoints, CCommandFileParser::INPUT_CMD_PARAM::fKValueFinal, and CCommandFileParser::INPUT_CMD_PARAM::fKValueInit.
Referenced by CTBMS_Solver::Launching_TBMS_Solver(), and CSPLoop::SolveSchroedinger().

|
static |
Show lanczos method result.
| lpResult | Calculated eigenvalue result |
| nIndex | The index that want to save result |
Definition at line 273 of file Utility.cpp.
References CLanczosMethod::EIGENVALUE_RESULT::nEigenValueCount, and CLanczosMethod::EIGENVALUE_RESULT::pEigenValues.
|
inlinestatic |
Definition at line 29 of file Utility.h.
References m_bShowMsg.
Referenced by InitEnvironment(), CMPIManager::InitLevel(), CTBMS_Solver::Launching_TBMS_Solver(), and CLanczosLaunching::LaunchingLanczos().

|
static |
Show vector class.
Show complex class
| number | The complex number that was wanted to show |
| pszDebugMsg | Text that was show first at matrix display |
Definition at line 243 of file Utility.cpp.
References CComplex::GetImaginaryNumber(), and CComplex::GetRealNumber().

|
static |
Set show message or not.
Show CSR matrix partialy
| pCSR | The matrix that was wanted to show |
| pszDebugMsg | Text that was show first at matrix display |
Definition at line 158 of file Utility.cpp.
References DUMY_STRING_FOR_COMPLEX_SHOWING, CMatrixOperation::CCSR::GetColumnCount(), CMatrixOperation::CCSR::GetElement(), CComplex::GetImaginaryNumber(), CComplex::GetRealNumber(), and CMatrixOperation::CCSR::GetRowCount().

|
static |
Show CSR matrix partialy.
| pCSR | The matrix that was wanted to show |
| pszDebugMsg | Text that was show first at matrix display |
| startm | Start row index that was wanted to show |
| endm | End row index that was wanted to show |
| startn | Start column index that was wanted to show |
| endn | End column index that was wanted to show |
Definition at line 127 of file Utility.cpp.
References DUMY_STRING_FOR_COMPLEX_SHOWING, CMatrixOperation::CCSR::GetElement(), CComplex::GetImaginaryNumber(), and CComplex::GetRealNumber().

|
static |
Show matrix partialy.
| pMatrix | The matrix that was wanted to show |
| startm | Start row index that was wanted to show |
| endm | End row index that was wanted to show |
| startn | Start column index that was wanted to show |
| endn | End column index that was wanted to show |
| pszDebugMsg | Text that was show first at matrix display |
| bLineFeed | Has linefeed between row or not |
| bShowImaginary | Determine show imaginary part or not |
Definition at line 89 of file Utility.cpp.
References CMatrixOperation::CDMatrix::GetElement(), CComplex::GetImaginaryNumber(), and CComplex::GetRealNumber().

|
static |
Show one double data.
| number | The number that was wanted to show |
| pszDebugMsg | Text that was show first at matrix display |
Definition at line 258 of file Utility.cpp.
|
static |
Show double array.
| vector | The vector that was wanted to show |
| pszDebugMsg | Text that was show first at matrix display |
| due | Debugger show vector element unti this index |
Definition at line 199 of file Utility.cpp.
|
static |
Show matrix in output debugging windows - Visual studio and Windows DebugView only.
| pMatrix | The matrix that was wanted to show |
| m | Numbers of row |
| n | Numbers of column |
| startm | Start row index that was wanted to show |
| endm | End row index that was wanted to show |
| startn | Start column index that was wanted to show |
| endn | End column index that was wanted to show |
| pszDebugMsg | Text that was show first at matrix display |
Definition at line 59 of file Utility.cpp.
|
static |
| vector | The vector that was wanted to show |
| pszDebugMsg | Text that was show first at matrix display |
| due | Debugger show vector element unti this index |
Definition at line 219 of file Utility.cpp.
References CMatrixOperation::CVector::GetAt(), CComplex::GetImaginaryNumber(), CComplex::GetRealNumber(), and CMatrixOperation::CVector::GetSize().

|
static |
Show message.
| pszBuffer | Showing message |
Definition at line 34 of file Utility.cpp.
Referenced by CTBMS_Solver::ApplyPhPotential(), CLanczosResultAudit::AuditResult_EV(), CLanczosResultAudit::AuditResult_WF(), CSPLoop::BuildHamiltonian(), CGeometricShape::BuildPEBiasVector(), CGeometricShape::BuildPEWaveVector(), CGeometricShape::CalculateUnitcellCount(), CGeometricShape::ConstructContactRegionOnPoissonGrid(), CSPLoop::ConstructionGeometric(), CGeometricShape::ConstructMapInfo(), CSPLoop::executeSPLoop(), InitEnvironment(), CLanczosMethod::LanczosIterationLoop(), CTBMS_Solver::Launching_TBMS_Solver(), CLanczosLaunching::LaunchingLanczos(), main(), CGeometricShape::MapElecAtomOnPoissonGrid(), CSPLoop::SetInitialPotential(), CLanczosMethod::ShowLanczosResult(), CLanczosMethod::ShowLanczosWorkingTime(), CSPLoop::SolvePoisson(), and CSPLoop::SolveSchroedinger().

|
staticprivate |