Revision | 6daaa01fdf85d42d50d26a0903f549823b89c517 (tree) |
---|---|
Zeit | 2011-11-03 03:05:21 |
Autor | Mikiya Fujii <mikiya.fujii@gmai...> |
Commiter | Mikiya Fujii |
Error log in Atom::GetNddoAlpha is added #26637
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/MolDS/trunk@268 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -181,6 +181,7 @@ private: | ||
181 | 181 | string errorMessageGetOrbitalExponentBadTheory; |
182 | 182 | string errorMessageTheoryType; |
183 | 183 | string errorMessageGetBondingParameterBadTheoryBadOrbital; |
184 | + string errorMessageGetNddoAlphaBadTheory; | |
184 | 185 | string errorMessageGetNddoDerivedParameterDBadTheory; |
185 | 186 | string errorMessageGetNddoDerivedParameterDBadDIndex; |
186 | 187 | string errorMessageDIndex; |
@@ -258,6 +259,8 @@ void Atom::SetMessages(){ | ||
258 | 259 | = "Error in base_atoms::Atom::GetNddoDerivedParameterD: Bad index for parameter D(dIndex). Only 0, 1, and 2 are permitted.\n"; |
259 | 260 | this->errorMessageGetNddoDerivedParameterDBadTheory |
260 | 261 | = "Error in base_atoms::Atom::GetNddoDerivedParameterD: Bad theory is set.\n"; |
262 | + this->errorMessageGetNddoAlphaBadTheory | |
263 | + = "Error in base_atoms::Atom::GetNddoAlpha: Bad theory is set.\n"; | |
261 | 264 | this->errorMessageDIndex = "dIndex = "; |
262 | 265 | this->errorMessageGetNddoDerivedParameterRhoBadRhoIndex |
263 | 266 | = "Error in base_atoms::Atom::GetNddoDerivedParameterRho: Bad index for parameter rho(rhoIndex). Only 0, 1, and 2 are permitted.\n"; |
@@ -695,7 +698,10 @@ double Atom::GetNddoAlpha(TheoryType theory){ | ||
695 | 698 | value = this->pm3Alpha; |
696 | 699 | } |
697 | 700 | else{ |
698 | - // ToDo: error log. | |
701 | + stringstream ss; | |
702 | + ss << this->errorMessageGetNddoAlphaBadTheory; | |
703 | + ss << this->errorMessageTheoryType << TheoryTypeStr(theory) << "\n"; | |
704 | + throw MolDSException(ss.str()); | |
699 | 705 | } |
700 | 706 | return value; |
701 | 707 | } |