Ignore:
Timestamp:
Oct 9, 2009, 2:35:14 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
7c2f6b
Parents:
e71890
Message:

First half of molecule_dynamics.cpp is refactored into smaller parts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/molecule.hpp

    re71890 r104cf4  
    5656/************************************* Class definitions ****************************************/
    5757
    58 
     58/** Structure to contain parameters needed for evaluation of constraint potential.
     59 */
     60struct EvaluatePotential
     61{
     62  int startstep;              //!< start configuration (MDStep in atom::trajectory)
     63  int endstep;                //!< end configuration (MDStep in atom::trajectory)
     64  atom **PermutationMap;      //!< gives target ptr for each atom, array of size molecule::AtomCount (this is "x" in \f$ V^{con}(x) \f$ )
     65  DistanceMap **DistanceList; //!< distance list of each atom to each atom
     66  DistanceMap::iterator *StepList; //!< iterator to ascend through NearestNeighbours \a **DistanceList
     67  int *DoubleList;            //!< count of which sources want to move to this target, basically the injective measure (>1 -> not injective)
     68  DistanceMap::iterator *DistanceIterators; //!< marks which was the last picked target as injective candidate with smallest distance
     69  bool IsAngstroem;           //!< whether coordinates are in angstroem (true) or bohrradius (false)
     70  double *PenaltyConstants;   //!<  penalty constant in front of each term
     71};
    5972
    6073#define MaxThermostats 6      //!< maximum number of thermostat entries in Ions#ThermostatNames and Ions#ThermostatImplemented
     
    216229
    217230
    218   double ConstrainedPotential(ofstream *out, atom **permutation, int start, int end, double *constants, bool IsAngstroem);
     231  double ConstrainedPotential(ofstream *out, struct EvaluatePotential &Params);
    219232  double MinimiseConstrainedPotential(ofstream *out, atom **&permutation, int startstep, int endstep, bool IsAngstroem);
    220233  void EvaluateConstrainedForces(ofstream *out, int startstep, int endstep, atom **PermutationMap, ForceMatrix *Force);
Note: See TracChangeset for help on using the changeset viewer.