Changeset 104cf4 for molecuilder/src/molecule.hpp
- Timestamp:
- Oct 9, 2009, 2:35:14 PM (16 years ago)
- Children:
- 7c2f6b
- Parents:
- e71890
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecule.hpp
re71890 r104cf4 56 56 /************************************* Class definitions ****************************************/ 57 57 58 58 /** Structure to contain parameters needed for evaluation of constraint potential. 59 */ 60 struct 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 }; 59 72 60 73 #define MaxThermostats 6 //!< maximum number of thermostat entries in Ions#ThermostatNames and Ions#ThermostatImplemented … … 216 229 217 230 218 double ConstrainedPotential(ofstream *out, atom **permutation, int start, int end, double *constants, bool IsAngstroem);231 double ConstrainedPotential(ofstream *out, struct EvaluatePotential &Params); 219 232 double MinimiseConstrainedPotential(ofstream *out, atom **&permutation, int startstep, int endstep, bool IsAngstroem); 220 233 void EvaluateConstrainedForces(ofstream *out, int startstep, int endstep, atom **PermutationMap, ForceMatrix *Force);
Note:
See TracChangeset
for help on using the changeset viewer.