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

Public Member Functions | |
| CKNIPCCUtility () | |
| ~CKNIPCCUtility () | |
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 (CKNMatrixOperation::CKNVector vector, char *pszDebugMsg, int due=-1) |
| static void | ShowComplex (CKNComplex 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 (CKNLanczosMethod::LPEIGENVALUE_RESULT lpResult, int nIndex) |
| Show lanczos method result. More... | |
| static void | SetShow (bool bShow) |
| static void | ShowCSR (CKNMatrixOperation::CKNCSR *pCSR, char *pszDebugMsg) |
| Set show message or not. More... | |
| static void | ShowCSR (CKNMatrixOperation::CKNCSR *pCSR, int startm, int endm, int startn, int endn, char *pszDebugMsg) |
| Show CSR matrix partialy. More... | |
| static void | ShowDenseMatrix (CKNMatrixOperation::CKNDMatrix *pMatrix, int startm, int endm, int startn, int endn, char *pszDebugMsg, bool bLineFeed=false, bool bShowImaginary=false) |
| Show matrix partialy. More... | |
| static void | DumpCSR (CKNMatrixOperation::CKNCSR *pCSR, char *pszFileName, double fAtomIDStartIndex) |
| Dump CSR to text file. More... | |
| static void | DumpCSRBinary (CKNMatrixOperation::CKNCSR *pCSR, char *pszFileName, double fAtomIDStartIndex) |
| Dump CSR to binary file. More... | |
| static void | ConvertLower (char *pszBuffer) |
| Convert string to lower case. More... | |
Static Private Attributes | |
| static bool | m_bShowMsg = false |
| Flag for display message. More... | |
This class includes functions for matrix debugging.
Definition at line 17 of file KNIPCCUtility.h.
| CKNIPCCUtility::CKNIPCCUtility | ( | ) |
Definition at line 24 of file KNIPCCUtility.cpp.
| CKNIPCCUtility::~CKNIPCCUtility | ( | ) |
Definition at line 28 of file KNIPCCUtility.cpp.
|
static |
Convert string to lower case.
| pszBuffer[in/out] | Target string to convert to lower case |
Definition at line 411 of file KNIPCCUtility.cpp.
Referenced by CKNMaterialParam::BuildMaterialParam().
|
static |
Dump CSR to text file.
| pCSR | CSR matrix |
| pszFileName | Save file name |
| fAtomIDStartIndex | Start index in shape |
Definition at line 350 of file KNIPCCUtility.cpp.
References CKNMPIManager::GetCurrentRank(), CKNMatrixOperation::CKNCSR::GetRowCount(), CKNMPIManager::GetTotalNodeCount(), CKNMPIManager::IsDeflationRoot(), CKNMPIManager::IsRootRank(), CKNMatrixOperation::CKNCSR::m_vectColumn, CKNMatrixOperation::CKNCSR::m_vectRow, CKNMatrixOperation::CKNCSR::m_vectValueImaginaryBuffer, CKNMatrixOperation::CKNCSR::m_vectValueRealBuffer, CKNMPIManager::ReceiveDoubleBufferSync(), and CKNMPIManager::SendDoubleBufferSync().
Referenced by CKNTBMS_Solver::Launching_TBMS_Solver().


|
static |
Dump CSR to binary file.
| pCSR | CSR matrix |
| pszFileName | Save file name |
| fAtomIDStartIndex | Start index in shape |
Definition at line 297 of file KNIPCCUtility.cpp.
References CKNMPIManager::GetCurrentRank(), CKNMatrixOperation::CKNCSR::GetRowCount(), CKNMPIManager::GetTotalNodeCount(), CKNMPIManager::IsRootRank(), CKNMatrixOperation::CKNCSR::m_vectColumn, CKNMatrixOperation::CKNCSR::m_vectRow, CKNMatrixOperation::CKNCSR::m_vectValueImaginaryBuffer, CKNMatrixOperation::CKNCSR::m_vectValueRealBuffer, CKNMPIManager::ReceiveDoubleBufferSync(), and CKNMPIManager::SendDoubleBufferSync().

|
static |
Show lanczos method result.
| lpResult | Calculated eigenvalue result |
| nIndex | The index that want to save result |
Definition at line 274 of file KNIPCCUtility.cpp.
References CKNLanczosMethod::EIGENVALUE_RESULT::nEigenValueCount, and CKNLanczosMethod::EIGENVALUE_RESULT::pEigenValues.
|
inlinestatic |
Definition at line 30 of file KNIPCCUtility.h.
References m_bShowMsg.
Referenced by CKNMPIManager::InitLevel(), CKNTBMS_Solver::Launching_TBMS_Solver(), and CKNLanczosLaunching::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 244 of file KNIPCCUtility.cpp.
References CKNComplex::GetImaginaryNumber(), and CKNComplex::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 159 of file KNIPCCUtility.cpp.
References DUMY_STRING_FOR_COMPLEX_SHOWING, CKNMatrixOperation::CKNCSR::GetColumnCount(), CKNMatrixOperation::CKNCSR::GetElement(), CKNComplex::GetImaginaryNumber(), CKNComplex::GetRealNumber(), and CKNMatrixOperation::CKNCSR::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 128 of file KNIPCCUtility.cpp.
References DUMY_STRING_FOR_COMPLEX_SHOWING, CKNMatrixOperation::CKNCSR::GetElement(), CKNComplex::GetImaginaryNumber(), and CKNComplex::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 90 of file KNIPCCUtility.cpp.
References CKNMatrixOperation::CKNDMatrix::GetElement(), CKNComplex::GetImaginaryNumber(), and CKNComplex::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 259 of file KNIPCCUtility.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 200 of file KNIPCCUtility.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 60 of file KNIPCCUtility.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 220 of file KNIPCCUtility.cpp.
References CKNMatrixOperation::CKNVector::GetAt(), CKNComplex::GetImaginaryNumber(), CKNComplex::GetRealNumber(), and CKNMatrixOperation::CKNVector::GetSize().

|
static |
Show message.
| pszBuffer | Showing message |
Definition at line 35 of file KNIPCCUtility.cpp.
Referenced by CKNTBMS_Solver::ApplyPhPotential(), CKNLanczosResultAudit::AuditResult_EV(), CKNLanczosResultAudit::AuditResult_WF(), CKNGeometricShape::CalculateUnitcellCount(), CKNGeometricShape::ConstructMapInfo(), CKNLanczosMethod::LanczosIterationLoop(), CKNTBMS_Solver::Launching_TBMS_Solver(), CKNLanczosLaunching::LaunchingLanczos(), CKNMPIManager::LoadBlancingForLanczos(), and CKNLanczosMethod::ShowLanczosResult().

|
staticprivate |