Ignore:
Timestamp:
Oct 27, 2009, 8:54:44 AM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
8b6ee4
Parents:
2e6aa1
Message:

Begun with ticket #38 (make const what is const).

  • basically all changes to member function that now state that they do not change member attributes.
  • in molecule_template.hpp all member functions are declared const, as we only need start and end from molecule and these are never changed (lots of overloaded templates removed thereby).
  • Vector::Distance...() and ...DistanceSquared() are const now too
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/atom_trajectoryparticle.cpp

    r2e6aa1 r94d0ad  
    4242 * \param *Force Force matrix to store result in
    4343 */
    44 void TrajectoryParticle::EvaluateConstrainedForce(int startstep, int endstep, atom **PermutationMap, ForceMatrix *Force)
     44void TrajectoryParticle::EvaluateConstrainedForce(int startstep, int endstep, atom **PermutationMap, ForceMatrix *Force) const
    4545{
    4646  double constant = 10.;
     
    129129 * \param *TotalVelocity pointer to tota velocity sum
    130130 */
    131 void TrajectoryParticle::SumUpKineticEnergy( int Step, double *TotalMass, Vector *TotalVelocity )
     131void TrajectoryParticle::SumUpKineticEnergy( int Step, double *TotalMass, Vector *TotalVelocity ) const
    132132{
    133133  *TotalMass += type->mass;  // sum up total mass
Note: See TracChangeset for help on using the changeset viewer.