Revisão | ca9b70a6cc10318eea861e3f31979aeec3d5db59 (tree) |
---|---|
Hora | 2011-01-07 14:51:51 |
Autor | Mikiya Fujii <mikiya.fujii@gmai...> |
Commiter | Mikiya Fujii |
for safety use
git-svn-id: https://svn.sourceforge.jp/svnroot/molds/MolDS/trunk@49 1136aad2-a195-0410-b898-f5ea1d11b9d8
@@ -318,6 +318,9 @@ void Molecule::CalcPrincipalAxes(){ | ||
318 | 318 | |
319 | 319 | cout << this->messageStartPrincipalAxes; |
320 | 320 | |
321 | + if(!this->wasCalculatedXyzCOM){ | |
322 | + this->CalcXyzCOM(); | |
323 | + } | |
321 | 324 | double inertiaTensorOrigin[3] = {this->xyzCOM[0], this->xyzCOM[1], this->xyzCOM[2]}; |
322 | 325 | if(Parameters::GetInstance()->GetInertiaTensorOrigin() != NULL){ |
323 | 326 | inertiaTensorOrigin[0] = Parameters::GetInstance()->GetInertiaTensorOrigin()[0]; |