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.hpp

    r2e6aa1 r94d0ad  
    4444  // constraint potential and dynamics stuff
    4545  void AddKineticToTemperature(double *temperature, int step) const;
    46   void EvaluateConstrainedForce(int startstep, int endstep, atom **PermutationMap, ForceMatrix *Force);
     46  void EvaluateConstrainedForce(int startstep, int endstep, atom **PermutationMap, ForceMatrix *Force) const;
    4747  void CorrectVelocity(double *ActualTemp, int Step, Vector *CoGVelocity);
    4848
     
    5151  void CopyStepOnStep(int dest, int src);
    5252  void VelocityVerletUpdate(int MDSteps, config *configuration, ForceMatrix *Force);
    53   void SumUpKineticEnergy( int Step, double *TotalMass, Vector *TotalVelocity );
     53  void SumUpKineticEnergy( int Step, double *TotalMass, Vector *TotalVelocity ) const;
    5454
    5555  // thermostats
Note: See TracChangeset for help on using the changeset viewer.