• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision6daaa01fdf85d42d50d26a0903f549823b89c517 (tree)
Zeit2011-11-03 03:05:21
AutorMikiya Fujii <mikiya.fujii@gmai...>
CommiterMikiya Fujii

Log Message

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

Ändern Zusammenfassung

Diff

--- a/src/base/atoms/Atom.h
+++ b/src/base/atoms/Atom.h
@@ -181,6 +181,7 @@ private:
181181 string errorMessageGetOrbitalExponentBadTheory;
182182 string errorMessageTheoryType;
183183 string errorMessageGetBondingParameterBadTheoryBadOrbital;
184+ string errorMessageGetNddoAlphaBadTheory;
184185 string errorMessageGetNddoDerivedParameterDBadTheory;
185186 string errorMessageGetNddoDerivedParameterDBadDIndex;
186187 string errorMessageDIndex;
@@ -258,6 +259,8 @@ void Atom::SetMessages(){
258259 = "Error in base_atoms::Atom::GetNddoDerivedParameterD: Bad index for parameter D(dIndex). Only 0, 1, and 2 are permitted.\n";
259260 this->errorMessageGetNddoDerivedParameterDBadTheory
260261 = "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";
261264 this->errorMessageDIndex = "dIndex = ";
262265 this->errorMessageGetNddoDerivedParameterRhoBadRhoIndex
263266 = "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){
695698 value = this->pm3Alpha;
696699 }
697700 else{
698- // ToDo: error log.
701+ stringstream ss;
702+ ss << this->errorMessageGetNddoAlphaBadTheory;
703+ ss << this->errorMessageTheoryType << TheoryTypeStr(theory) << "\n";
704+ throw MolDSException(ss.str());
699705 }
700706 return value;
701707 }