• 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

Revision2386d906de80ec68742c6d5d3fd2097a7a34a449 (tree)
Zeit2012-06-03 16:16:13
AutorMikiya Fujii <mikiya.fujii@gmai...>
CommiterMikiya Fujii

Log Message

Cndo2::reeDiatomicOverlapFirstDeriTemps is refactored #28554

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

Ändern Zusammenfassung

Diff

--- a/src/cndo/Cndo2.cpp
+++ b/src/cndo/Cndo2.cpp
@@ -3373,25 +3373,25 @@ void Cndo2::CalcDiatomicOverlapFirstDerivative(double*** overlapFirstDeri,
33733373 pow(Cartesian[ZAxis],2.0) );
33743374
33753375 double** diatomicOverlap = NULL;
3376- double** rotatingMatrix = NULL;
33773376 double** diaOverlapFirstDeri = NULL;
3377+ double** rotatingMatrix = NULL;
33783378 double*** rotMatFirstDerivatives = NULL;
33793379
33803380 try{
33813381 MallocerFreer::GetInstance()->Malloc<double>(&diatomicOverlap,
33823382 OrbitalType_end,
33833383 OrbitalType_end);
3384+ MallocerFreer::GetInstance()->Malloc<double>(&diaOverlapFirstDeri, OrbitalType_end, OrbitalType_end);
33843385 MallocerFreer::GetInstance()->Malloc<double>(&rotatingMatrix,
33853386 OrbitalType_end,
33863387 OrbitalType_end);
3387- MallocerFreer::GetInstance()->Malloc<double>(&diaOverlapFirstDeri, OrbitalType_end, OrbitalType_end);
33883388 MallocerFreer::GetInstance()->Malloc<double>(&rotMatFirstDerivatives,
33893389 OrbitalType_end,
33903390 OrbitalType_end,
33913391 CartesianType_end);
33923392 this->CalcDiatomicOverlapInDiatomicFrame(diatomicOverlap, atomA, atomB);
3393- this->CalcRotatingMatrix(rotatingMatrix, atomA, atomB);
33943393 this->CalcDiatomicOverlapFirstDerivativeInDiatomicFrame(diaOverlapFirstDeri, atomA, atomB);
3394+ this->CalcRotatingMatrix(rotatingMatrix, atomA, atomB);
33953395 this->CalcRotatingMatrixFirstDerivatives(rotMatFirstDerivatives, atomA, atomB);
33963396
33973397 // rotate
@@ -3424,25 +3424,25 @@ void Cndo2::CalcDiatomicOverlapFirstDerivative(double*** overlapFirstDeri,
34243424 }
34253425 catch(MolDSException ex){
34263426 this->FreeDiatomicOverlapFirstDeriTemps(&diatomicOverlap,
3427- &rotatingMatrix,
34283427 &diaOverlapFirstDeri,
3428+ &rotatingMatrix,
34293429 &rotMatFirstDerivatives);
34303430 throw ex;
34313431 }
34323432 // free
34333433 this->FreeDiatomicOverlapFirstDeriTemps(&diatomicOverlap,
3434- &rotatingMatrix,
34353434 &diaOverlapFirstDeri,
3435+ &rotatingMatrix,
34363436 &rotMatFirstDerivatives);
34373437 }
34383438
34393439 void Cndo2::FreeDiatomicOverlapFirstDeriTemps(double*** diatomicOverlap,
3440- double*** rotatingMatrix,
34413440 double*** diaOverlapFirstDeri,
3441+ double*** rotatingMatrix,
34423442 double**** rotMatFirstDerivatives) const{
34433443 MallocerFreer::GetInstance()->Free<double>(diatomicOverlap, OrbitalType_end, OrbitalType_end);
3444- MallocerFreer::GetInstance()->Free<double>(rotatingMatrix, OrbitalType_end, OrbitalType_end);
34453444 MallocerFreer::GetInstance()->Free<double>(diaOverlapFirstDeri, OrbitalType_end, OrbitalType_end);
3445+ MallocerFreer::GetInstance()->Free<double>(rotatingMatrix, OrbitalType_end, OrbitalType_end);
34463446 MallocerFreer::GetInstance()->Free<double>(rotMatFirstDerivatives, OrbitalType_end, OrbitalType_end, CartesianType_end);
34473447 }
34483448
--- a/src/cndo/Cndo2.h
+++ b/src/cndo/Cndo2.h
@@ -170,8 +170,8 @@ protected:
170170 const MolDS_base_atoms::Atom& atomA,
171171 const MolDS_base_atoms::Atom& atomB) const;
172172 void FreeDiatomicOverlapFirstDeriTemps(double*** diatomicOverlap,
173- double*** rotatingMatrix,
174173 double*** diaOverlapFirstDeri,
174+ double*** rotatingMatrix,
175175 double**** rotMatFirstDerivatives) const;
176176 virtual double GetMolecularIntegralElement(int moI, int moJ, int moK, int moL,
177177 const MolDS_base::Molecule& molecule,