• 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ão21b0560e9ac05758193a0a34216973030d202862 (tree)
Hora2011-01-06 19:28:39
AutorMikiya Fujii <mikiya.fujii@gmai...>
CommiterMikiya Fujii

Mensagem de Log

'// ToDo: rotate' is added.

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

Mudança Sumário

Diff

--- a/src/base/Molecule.h
+++ b/src/base/Molecule.h
@@ -61,6 +61,8 @@ private:
6161 string messageCOM;
6262 string messageCOMTitleAU;
6363 string messageCOMTitleAng;
64+ string messageStartPrincipalAxes;
65+ string messageDonePrincipalAxes;
6466 string messagePrincipalAxes;
6567 string messagePrincipalAxesTitleAU;
6668 string messagePrincipalAxesTitleAng;
@@ -100,6 +102,8 @@ Molecule::Molecule(){
100102 this->messageCOM = "\tCenter of Mass:\n";
101103 this->messageCOMTitleAU = "\t\t| x [a.u.] | y[a.u.] | z[a.u.] |\n";
102104 this->messageCOMTitleAng = "\t\t| x [angst.] | y[angst.] | z[angst.] |\n";
105+ this->messageStartPrincipalAxes = "********** START: Principal Axes Analysis **********\n";
106+ this->messageDonePrincipalAxes = "********** DONE: Principal Axes Analysis ***********\n\n\n";
103107 this->messagePrincipalAxes = "\tPrincipal Axes:\n";
104108 this->messagePrincipalAxesTitleAU = "\t\t| inertia moments [a.u.] | x [a.u.] | y[a.u.] | z[a.u.] | (normalized)\n";
105109 this->messagePrincipalAxesTitleAng = "\t\t| inertia moments [g*angust**2/mol] | x [angst.] | y[angst.] | z[angst.] | (not normalized)\n";
@@ -318,6 +322,8 @@ void Molecule::SetInertiaTensorOrigin(double x, double y, double z){
318322
319323 void Molecule::CalcPrincipalAxes(){
320324
325+ cout << this->messageStartPrincipalAxes;
326+
321327 if(this->inertiaTensorOrigin == NULL){
322328 if(!this->wasCalculatedCOMXyz){
323329 this->CalcCOMXyz();
@@ -343,8 +349,9 @@ void Molecule::CalcPrincipalAxes(){
343349 this->FreeInertiaTensorMoments(inertiaTensor, inertiaMoments);
344350 throw ex;
345351 }
346-
347352 this->FreeInertiaTensorMoments(inertiaTensor, inertiaMoments);
353+
354+ cout << this->messageDonePrincipalAxes;
348355
349356 }
350357
@@ -456,6 +463,9 @@ void Molecule::Rotate(){
456463 }
457464
458465 this->OutputRotatingConditions();
466+
467+ // ToDo: rotate
468+
459469 cout << this->messageDoneRotate;
460470 }
461471