• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Revisãoca9b70a6cc10318eea861e3f31979aeec3d5db59 (tree)
Hora2011-01-07 14:51:51
AutorMikiya Fujii <mikiya.fujii@gmai...>
CommiterMikiya Fujii

Mensagem de Log

for safety use

git-svn-id: https://svn.sourceforge.jp/svnroot/molds/MolDS/trunk@49 1136aad2-a195-0410-b898-f5ea1d11b9d8

Mudança Sumário

Diff

--- a/src/base/Molecule.h
+++ b/src/base/Molecule.h
@@ -318,6 +318,9 @@ void Molecule::CalcPrincipalAxes(){
318318
319319 cout << this->messageStartPrincipalAxes;
320320
321+ if(!this->wasCalculatedXyzCOM){
322+ this->CalcXyzCOM();
323+ }
321324 double inertiaTensorOrigin[3] = {this->xyzCOM[0], this->xyzCOM[1], this->xyzCOM[2]};
322325 if(Parameters::GetInstance()->GetInertiaTensorOrigin() != NULL){
323326 inertiaTensorOrigin[0] = Parameters::GetInstance()->GetInertiaTensorOrigin()[0];