Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/MoleculeAction/RotateToPrincipalAxisSystemAction.cpp

    rc89fb4 r83f176  
     1/*
     2 * Project: MoleCuilder
     3 * Description: creates and alters molecular systems
     4 * Copyright (C)  2010 University of Bonn. All rights reserved.
     5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details.
     6 */
     7
    18/*
    29 * RotateToPrincipalAxisSystemAction.cpp
     
    512 *      Author: heber
    613 */
     14
     15// include config.h
     16#ifdef HAVE_CONFIG_H
     17#include <config.h>
     18#endif
    719
    820#include "Helpers/MemDebug.hpp"
     
    8597      Vector x = (*iter)->getPosition();
    8698      x -= *CenterOfGravity;
    87       const double mass = (*iter)->getType()->mass;
     99      const double mass = (*iter)->getType()->getMass();
    88100      InertiaTensor.at(0,0) += mass*(x[1]*x[1] + x[2]*x[2]);
    89101      InertiaTensor.at(0,1) += mass*(-x[0]*x[1]);
     
    136148      Vector x = (*iter)->getPosition();
    137149      x -= *CenterOfGravity;
    138       const double mass = (*iter)->getType()->mass;
     150      const double mass = (*iter)->getType()->getMass();
    139151      InertiaTensor.at(0,0) += mass*(x[1]*x[1] + x[2]*x[2]);
    140152      InertiaTensor.at(0,1) += mass*(-x[0]*x[1]);
Note: See TracChangeset for help on using the changeset viewer.