Changes in src/molecule_geometry.cpp [c94eeb:112b09]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/molecule_geometry.cpp
rc94eeb r112b09 19 19 #include "World.hpp" 20 20 #include "Plane.hpp" 21 #include "Matrix.hpp"22 21 #include <boost/foreach.hpp> 23 22 … … 155 154 156 155 const double *cell_size = World::getInstance().getDomain(); 157 double *M_double = ReturnFullMatrixforSymmetric(cell_size); 158 Matrix M = Matrix(M_double); 159 delete[](M_double); 156 double *M = ReturnFullMatrixforSymmetric(cell_size); 160 157 a->MatrixMultiplication(M); 158 delete[](M); 161 159 162 160 return a; … … 276 274 { 277 275 double * const cell_size = World::getInstance().getDomain(); 278 double *matrix_double = ReturnFullMatrixforSymmetric(cell_size); 279 Matrix matrix = Matrix(matrix_double); 280 delete[](matrix_double); 281 Matrix inversematrix = matrix.invert(); 276 double *matrix = ReturnFullMatrixforSymmetric(cell_size); 277 double *inversematrix = InverseMatrix(matrix); 282 278 double tmp; 283 279 bool flag; … … 328 324 } 329 325 } while (!flag); 326 delete[](matrix); 327 delete[](inversematrix); 330 328 331 329 Center.Scale(1./static_cast<double>(getAtomCount())); … … 389 387 DoLog(1) && (Log() << Verbose(1) << "Transforming molecule into PAS ... "); 390 388 // the eigenvectors specify the transformation matrix 391 Matrix M = Matrix(evec->data); 392 ActOnAllVectors( &Vector::MatrixMultiplication, static_cast<const Matrix>(M)); 389 ActOnAllVectors( &Vector::MatrixMultiplication, (const double *) evec->data ); 393 390 DoLog(0) && (Log() << Verbose(0) << "done." << endl); 394 391
Note:
See TracChangeset
for help on using the changeset viewer.