source: src/Dynamics/ForceAnnealing.hpp@ 26de2a

ForceAnnealing_with_BondGraph_continued
Last change on this file since 26de2a was 7ef5d32, checked in by Frederik Heber <frederik.heber@…>, 8 years ago

tempcommit: With DoOutput() removed, i.e. always true, we need to look behind two steps.

  • Property mode set to 100644
File size: 23.0 KB
Line 
1/*
2 * ForceAnnealing.hpp
3 *
4 * Created on: Aug 02, 2014
5 * Author: heber
6 */
7
8#ifndef FORCEANNEALING_HPP_
9#define FORCEANNEALING_HPP_
10
11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16#include <algorithm>
17#include <functional>
18#include <iterator>
19
20#include <boost/bind.hpp>
21
22#include "Atom/atom.hpp"
23#include "Atom/AtomSet.hpp"
24#include "CodePatterns/Assert.hpp"
25#include "CodePatterns/Info.hpp"
26#include "CodePatterns/Log.hpp"
27#include "CodePatterns/Verbose.hpp"
28#include "Descriptors/AtomIdDescriptor.hpp"
29#include "Dynamics/AtomicForceManipulator.hpp"
30#include "Dynamics/BondVectors.hpp"
31#include "Fragmentation/ForceMatrix.hpp"
32#include "Graph/BoostGraphCreator.hpp"
33#include "Graph/BoostGraphHelpers.hpp"
34#include "Graph/BreadthFirstSearchGatherer.hpp"
35#include "Helpers/helpers.hpp"
36#include "Helpers/defs.hpp"
37#include "LinearAlgebra/LinearSystemOfEquations.hpp"
38#include "LinearAlgebra/MatrixContent.hpp"
39#include "LinearAlgebra/Vector.hpp"
40#include "LinearAlgebra/VectorContent.hpp"
41#include "Thermostats/ThermoStatContainer.hpp"
42#include "Thermostats/Thermostat.hpp"
43#include "World.hpp"
44
45/** This class is the essential build block for performing structural optimization.
46 *
47 * Sadly, we have to use some static instances as so far values cannot be passed
48 * between actions. Hence, we need to store the current step and the adaptive-
49 * step width (we cannot perform a line search, as we have no control over the
50 * calculation of the forces).
51 *
52 * However, we do use the bond graph, i.e. if a single atom needs to be shifted
53 * to the left, then the whole molecule left of it is shifted, too. This is
54 * controlled by the \a max_distance parameter.
55 */
56template <class T>
57class ForceAnnealing : public AtomicForceManipulator<T>
58{
59public:
60 /** Constructor of class ForceAnnealing.
61 *
62 * \note We use a fixed delta t of 1.
63 *
64 * \param _atoms set of atoms to integrate
65 * \param _Deltat time step width in atomic units
66 * \param _IsAngstroem whether length units are in angstroem or bohr radii
67 * \param _maxSteps number of optimization steps to perform
68 * \param _max_distance up to this bond order is bond graph taken into account.
69 */
70 ForceAnnealing(
71 AtomSetMixin<T> &_atoms,
72 const double _Deltat,
73 bool _IsAngstroem,
74 const size_t _maxSteps,
75 const int _max_distance,
76 const double _damping_factor) :
77 AtomicForceManipulator<T>(_atoms, _Deltat, _IsAngstroem),
78 maxSteps(_maxSteps),
79 max_distance(_max_distance),
80 damping_factor(_damping_factor)
81 {}
82
83 /** Destructor of class ForceAnnealing.
84 *
85 */
86 ~ForceAnnealing()
87 {}
88
89 /** Performs Gradient optimization.
90 *
91 * We assume that forces have just been calculated.
92 *
93 *
94 * \param CurrentTimeStep current time step (i.e. \f$ t + \Delta t \f$ in the sense of the velocity verlet)
95 * \param offset offset in matrix file to the first force component
96 * \todo This is not yet checked if it is correctly working with DoConstrainedMD set >0.
97 */
98 void operator()(
99 const int _CurrentTimeStep,
100 const size_t _offset,
101 const bool _UseBondgraph)
102 {
103 // make sum of forces equal zero
104 AtomicForceManipulator<T>::correctForceMatrixForFixedCenterOfMass(_offset, _CurrentTimeStep);
105
106 // are we in initial step? Then set static entities
107 Vector maxComponents(zeroVec);
108 if (currentStep == 0) {
109 currentDeltat = AtomicForceManipulator<T>::Deltat;
110 currentStep = 1;
111 LOG(2, "DEBUG: Initial step, setting values, current step is #" << currentStep);
112
113 // always use atomic annealing on first step
114 maxComponents = anneal(_CurrentTimeStep);
115 } else {
116 ++currentStep;
117 LOG(2, "DEBUG: current step is #" << currentStep);
118
119 // bond graph annealing is always followed by a normal annealing
120 if (_UseBondgraph)
121 maxComponents = annealWithBondGraph(_CurrentTimeStep);
122 // cannot store RemnantGradient in Atom's Force as it ruins BB stepwidth calculation
123 else
124 maxComponents = anneal(_CurrentTimeStep);
125 }
126
127 LOG(1, "STATUS: Largest remaining force components at step #"
128 << currentStep << " are " << maxComponents);
129
130 // are we in final step? Remember to reset static entities
131 if (currentStep == maxSteps) {
132 LOG(2, "DEBUG: Final step, resetting values");
133 reset();
134 }
135 }
136
137 /** Performs Gradient optimization on the atoms.
138 *
139 * We assume that forces have just been calculated.
140 *
141 * \param CurrentTimeStep current time step (i.e. \f$ t + \Delta t \f$ in the sense of the velocity verlet)
142 * \return to be filled with maximum force component over all atoms
143 */
144 Vector anneal(
145 const int CurrentTimeStep)
146 {
147 Vector maxComponents;
148 bool deltat_decreased = false;
149 for(typename AtomSetMixin<T>::iterator iter = AtomicForceManipulator<T>::atoms.begin();
150 iter != AtomicForceManipulator<T>::atoms.end(); ++iter) {
151 // atom's force vector gives steepest descent direction
152 const Vector oldPosition = (*iter)->getPositionAtStep(CurrentTimeStep-2 >= 0 ? CurrentTimeStep - 2 : 0);
153 const Vector currentPosition = (*iter)->getPositionAtStep(CurrentTimeStep);
154 const Vector oldGradient = (*iter)->getAtomicForceAtStep(CurrentTimeStep-2 >= 0 ? CurrentTimeStep - 2 : 0);
155 const Vector currentGradient = (*iter)->getAtomicForceAtStep(CurrentTimeStep);
156 LOG(4, "DEBUG: oldPosition for atom " << **iter << " is " << oldPosition);
157 LOG(4, "DEBUG: currentPosition for atom " << **iter << " is " << currentPosition);
158 LOG(4, "DEBUG: oldGradient for atom " << **iter << " is " << oldGradient);
159 LOG(4, "DEBUG: currentGradient for atom " << **iter << " is " << currentGradient);
160// LOG(4, "DEBUG: Force for atom " << **iter << " is " << currentGradient);
161
162 // we use Barzilai-Borwein update with position reversed to get descent
163 const Vector PositionDifference = currentPosition - oldPosition;
164 const Vector GradientDifference = (currentGradient - oldGradient);
165 double stepwidth = 0.;
166 if (GradientDifference.Norm() > MYEPSILON)
167 stepwidth = fabs(PositionDifference.ScalarProduct(GradientDifference))/
168 GradientDifference.NormSquared();
169 if (fabs(stepwidth) < 1e-10) {
170 // dont' warn in first step, deltat usage normal
171 if (currentStep != 1)
172 ELOG(1, "INFO: Barzilai-Borwein stepwidth is zero, using deltat " << currentDeltat << " instead.");
173 stepwidth = currentDeltat;
174 }
175 Vector PositionUpdate = stepwidth * currentGradient;
176 LOG(3, "DEBUG: Update would be " << stepwidth << "*" << currentGradient << " = " << PositionUpdate);
177
178 // extract largest components for showing progress of annealing
179 for(size_t i=0;i<NDIM;++i)
180 if (currentGradient[i] > maxComponents[i])
181 maxComponents[i] = currentGradient[i];
182
183 // steps may go back and forth again (updates are of same magnitude but
184 // have different sign: Check whether this is the case and one step with
185 // deltat to interrupt this sequence
186 if ((currentStep > 1) && (!PositionDifference.IsZero()))
187 if ((PositionUpdate.ScalarProduct(PositionDifference) < 0)
188 && (fabs(PositionUpdate.NormSquared()-PositionDifference.NormSquared()) < 1e-3)) {
189 // for convergence we want a null sequence here, too
190 if (!deltat_decreased) {
191 deltat_decreased = true;
192 currentDeltat = .5*currentDeltat;
193 }
194 LOG(2, "DEBUG: Upgrade in other direction: " << PositionUpdate
195 << " > " << PositionDifference
196 << ", using deltat: " << currentDeltat);
197 PositionUpdate = currentDeltat * currentGradient;
198 }
199
200 // finally set new values
201 (*iter)->setPosition(currentPosition + PositionUpdate);
202 }
203
204 return maxComponents;
205 }
206
207 // knowing the number of bonds in total, we can setup the storage for the
208 // projected forces
209 enum whichatom_t {
210 leftside=0,
211 rightside=1,
212 MAX_sides
213 };
214
215 /** Helper function to put bond force into a container.
216 *
217 * \param _walker atom
218 * \param _current_bond current bond of \a _walker
219 * \param _timestep time step
220 * \param _force calculated bond force
221 * \param _bv bondvectors for obtaining the correct index
222 * \param _projected_forces container
223 */
224 static void ForceStore(
225 const atom &_walker,
226 const bond::ptr &_current_bond,
227 const size_t &_timestep,
228 const double _force,
229 const BondVectors &_bv,
230 std::vector< // time step
231 std::vector< // which bond side
232 std::vector<double> > // over all bonds
233 > &_projected_forces)
234 {
235 std::vector<double> &forcelist = (&_walker == _current_bond->leftatom) ?
236 _projected_forces[_timestep][leftside] : _projected_forces[_timestep][rightside];
237 const size_t index = _bv.getIndexForBond(_current_bond);
238 ASSERT( index != (size_t)-1,
239 "ForceAnnealing() - could not find bond "+toString(*_current_bond)
240 +" in bondvectors");
241 forcelist[index] = _force;
242 }
243
244 /** Performs Gradient optimization on the bonds.
245 *
246 * We assume that forces have just been calculated. These forces are projected
247 * onto the bonds and these are annealed subsequently by moving atoms in the
248 * bond neighborhood on either side conjunctively.
249 *
250 *
251 * \param CurrentTimeStep current time step (i.e. \f$ t + \Delta t \f$ in the sense of the velocity verlet)
252 * \param maxComponents to be filled with maximum force component over all atoms
253 */
254 Vector annealWithBondGraph(
255 const int CurrentTimeStep)
256 {
257 Vector maxComponents;
258
259 // get nodes on either side of selected bond via BFS discovery
260 BoostGraphCreator BGcreator;
261 BGcreator.createFromRange(
262 AtomicForceManipulator<T>::atoms.begin(),
263 AtomicForceManipulator<T>::atoms.end(),
264 AtomicForceManipulator<T>::atoms.size(),
265 BreadthFirstSearchGatherer::AlwaysTruePredicate);
266 BreadthFirstSearchGatherer NodeGatherer(BGcreator);
267
268 /// We assume that a force is local, i.e. a bond is too short yet and hence
269 /// the atom needs to be moved. However, all the adjacent (bound) atoms might
270 /// already be at the perfect distance. If we just move the atom alone, we ruin
271 /// all the other bonds. Hence, it would be sensible to move every atom found
272 /// through the bond graph in the direction of the force as well by the same
273 /// PositionUpdate. This is almost what we are going to do.
274
275 /// One issue is: If we need to shorten bond, then we use the PositionUpdate
276 /// also on the the other bond partner already. This is because it is in the
277 /// direction of the bond. Therefore, the update is actually performed twice on
278 /// each bond partner, i.e. the step size is twice as large as it should be.
279 /// This problem only occurs when bonds need to be shortened, not when they
280 /// need to be made longer (then the force vector is facing the other
281 /// direction than the bond vector).
282 /// As a remedy we need to average the force on either end of the bond and
283 /// check whether each gradient points inwards out or outwards with respect
284 /// to the bond and then shift accordingly.
285
286 /// One more issue is that the projection onto the bond directions does not
287 /// recover the gradient but may be larger as the bond directions are a
288 /// generating system and not a basis (e.g. 3 bonds on a plane where 2 would
289 /// suffice to span the plane). To this end, we need to account for the
290 /// overestimation and obtain a weighting for each bond.
291
292 // initialize helper class for bond vectors using bonds from range of atoms
293 BondVectors bv;
294 bv.setFromAtomRange< T >(
295 AtomicForceManipulator<T>::atoms.begin(),
296 AtomicForceManipulator<T>::atoms.end(),
297 currentStep);
298 const BondVectors::container_t &sorted_bonds = bv.getSorted();
299
300 std::vector< // time step
301 std::vector< // which bond side
302 std::vector<double> > // over all bonds
303 > projected_forces(2); // one for leftatoms, one for rightatoms (and for both time steps)
304 for (size_t i=0;i<2;++i) {
305 projected_forces[i].resize(MAX_sides);
306 for (size_t j=0;j<MAX_sides;++j)
307 projected_forces[i][j].resize(sorted_bonds.size(), 0.);
308 }
309
310 // for each atom we need to gather weights and then project the gradient
311 typedef std::map<atomId_t, BondVectors::weights_t > weights_per_atom_t;
312 std::vector<weights_per_atom_t> weights_per_atom(2);
313 typedef std::map<atomId_t, Vector> RemnantGradient_per_atom_t;
314 RemnantGradient_per_atom_t RemnantGradient_per_atom;
315 for (size_t timestep = 0; timestep <= 1; ++timestep) {
316 const size_t CurrentStep = CurrentTimeStep-2*timestep >= 0 ? CurrentTimeStep - 2*timestep : 0;
317 LOG(2, "DEBUG: CurrentTimeStep is " << CurrentTimeStep
318 << ", timestep is " << timestep
319 << ", and CurrentStep is " << CurrentStep);
320
321 for(typename AtomSetMixin<T>::const_iterator iter = AtomicForceManipulator<T>::atoms.begin();
322 iter != AtomicForceManipulator<T>::atoms.end(); ++iter) {
323 const atom &walker = *(*iter);
324 const Vector &walkerGradient = walker.getAtomicForceAtStep(CurrentStep);
325 LOG(3, "DEBUG: Gradient of atom #" << walker.getId() << ", namely "
326 << walker << " is " << walkerGradient);
327
328 const BondList& ListOfBonds = walker.getListOfBonds();
329 if (walkerGradient.Norm() > MYEPSILON) {
330
331 // gather subset of BondVectors for the current atom
332 const std::vector<Vector> BondVectors =
333 bv.getAtomsBondVectorsAtStep(walker, CurrentStep);
334
335 // go through all its bonds and calculate what magnitude is represented
336 // by the others i.e. sum of scalar products against other bonds
337 const std::pair<weights_per_atom_t::iterator, bool> inserter =
338 weights_per_atom[timestep].insert(
339 std::make_pair(walker.getId(),
340 bv.getWeightsForAtomAtStep(walker, BondVectors, CurrentStep)) );
341 ASSERT( inserter.second,
342 "ForceAnnealing::operator() - weight map for atom "+toString(walker)
343 +" and time step "+toString(timestep)+" already filled?");
344 BondVectors::weights_t &weights = inserter.first->second;
345 ASSERT( weights.size() == ListOfBonds.size(),
346 "ForceAnnealing::operator() - number of weights "
347 +toString(weights.size())+" does not match number of bonds "
348 +toString(ListOfBonds.size())+", error in calculation?");
349
350 // projected gradient over all bonds and place in one of projected_forces
351 // using the obtained weights
352 BondVectors::forcestore_t forcestoring =
353 boost::bind(&ForceAnnealing::ForceStore, _1, _2, _3, _4,
354 boost::cref(bv), boost::ref(projected_forces));
355 const Vector RemnantGradient = bv.getRemnantGradientForAtomAtStep(
356 walker, walkerGradient, BondVectors, weights, timestep, forcestoring
357 );
358 RemnantGradient_per_atom.insert( std::make_pair(walker.getId(), RemnantGradient) );
359 } else {
360 LOG(2, "DEBUG: Gradient is " << walkerGradient << " less than "
361 << MYEPSILON << " for atom " << walker);
362 // note that projected_forces is initialized to full length and filled
363 // with zeros. Hence, nothing to do here
364 }
365 }
366 }
367
368 // step through each bond and shift the atoms
369 std::map<atomId_t, Vector> GatheredUpdates; //!< gathers all updates which are applied at the end
370
371 LOG(3, "DEBUG: current step is " << currentStep << ", given time step is " << CurrentTimeStep);
372 const BondVectors::mapped_t bondvectors = bv.getBondVectorsAtStep(currentStep);
373
374 for (BondVectors::container_t::const_iterator bondsiter = sorted_bonds.begin();
375 bondsiter != sorted_bonds.end(); ++bondsiter) {
376 const bond::ptr &current_bond = *bondsiter;
377 const size_t index = bv.getIndexForBond(current_bond);
378 const atom* bondatom[MAX_sides] = {
379 current_bond->leftatom,
380 current_bond->rightatom
381 };
382
383 // remove the edge
384#ifndef NDEBUG
385 const bool status =
386#endif
387 BGcreator.removeEdge(bondatom[leftside]->getId(), bondatom[rightside]->getId());
388 ASSERT( status, "ForceAnnealing() - edge to found bond is not present?");
389
390 // gather nodes for either atom
391 BoostGraphHelpers::Nodeset_t bondside_set[MAX_sides];
392 BreadthFirstSearchGatherer::distance_map_t distance_map[MAX_sides];
393 for (size_t side=leftside;side<MAX_sides;++side) {
394 bondside_set[side] = NodeGatherer(bondatom[side]->getId(), max_distance);
395 distance_map[side] = NodeGatherer.getDistances();
396 std::sort(bondside_set[side].begin(), bondside_set[side].end());
397 }
398
399 // re-add edge
400 BGcreator.addEdge(bondatom[leftside]->getId(), bondatom[rightside]->getId());
401
402 // do for both leftatom and rightatom of bond
403 for (size_t side = leftside; side < MAX_sides; ++side) {
404 const double &bondforce = projected_forces[0][side][index];
405 const double &oldbondforce = projected_forces[1][side][index];
406 const double bondforcedifference = fabs(bondforce - oldbondforce);
407 LOG(4, "DEBUG: bondforce for " << (side == leftside ? "left" : "right")
408 << " side of bond is " << bondforce);
409 LOG(4, "DEBUG: oldbondforce for " << (side == leftside ? "left" : "right")
410 << " side of bond is " << oldbondforce);
411 // if difference or bondforce itself is zero, do nothing
412 if ((fabs(bondforce) < MYEPSILON) || (fabs(bondforcedifference) < MYEPSILON))
413 continue;
414
415 // get BondVector to bond
416 const BondVectors::mapped_t::const_iterator bviter =
417 bondvectors.find(current_bond);
418 ASSERT( bviter != bondvectors.end(),
419 "ForceAnnealing() - cannot find current_bond ?");
420 ASSERT( fabs(bviter->second.Norm() -1.) < MYEPSILON,
421 "ForceAnnealing() - norm of BondVector is not one");
422 const Vector &BondVector = bviter->second;
423
424 // calculate gradient and position differences for stepwidth
425 const Vector currentGradient = bondforce * BondVector;
426 LOG(4, "DEBUG: current projected gradient for "
427 << (side == leftside ? "left" : "right") << " side of bond is " << currentGradient);
428 const Vector &oldPosition = bondatom[side]->getPositionAtStep(CurrentTimeStep-2 >= 0 ? CurrentTimeStep - 2 : 0);
429 const Vector &currentPosition = bondatom[side]->getPositionAtStep(currentStep);
430 const Vector PositionDifference = currentPosition - oldPosition;
431 LOG(4, "DEBUG: old position is " << oldPosition);
432 LOG(4, "DEBUG: current position is " << currentPosition);
433 LOG(4, "DEBUG: difference in position is " << PositionDifference);
434 LOG(4, "DEBUG: bondvector is " << BondVector);
435 const double projected_PositionDifference = PositionDifference.ScalarProduct(BondVector);
436 LOG(4, "DEBUG: difference in position projected onto bondvector is "
437 << projected_PositionDifference);
438 LOG(4, "DEBUG: abs. difference in forces is " << bondforcedifference);
439
440 // calculate step width
441 double stepwidth =
442 fabs(projected_PositionDifference)/bondforcedifference;
443 if (fabs(stepwidth) < 1e-10) {
444 // dont' warn in first step, deltat usage normal
445 if (currentStep != 1)
446 ELOG(1, "INFO: Barzilai-Borwein stepwidth is zero, using deltat " << currentDeltat << " instead.");
447 stepwidth = currentDeltat;
448 }
449 Vector PositionUpdate = stepwidth * currentGradient;
450 LOG(3, "DEBUG: Update would be " << stepwidth << "*" << currentGradient << " = " << PositionUpdate);
451
452 // add PositionUpdate for all nodes in the bondside_set
453 for (BoostGraphHelpers::Nodeset_t::const_iterator setiter = bondside_set[side].begin();
454 setiter != bondside_set[side].end(); ++setiter) {
455 const BreadthFirstSearchGatherer::distance_map_t::const_iterator diter
456 = distance_map[side].find(*setiter);
457 ASSERT( diter != distance_map[side].end(),
458 "ForceAnnealing() - could not find distance to an atom.");
459 const double factor = pow(damping_factor, diter->second+1);
460 LOG(3, "DEBUG: Update for atom #" << *setiter << " will be "
461 << factor << "*" << PositionUpdate);
462 if (GatheredUpdates.count((*setiter))) {
463 GatheredUpdates[(*setiter)] += factor*PositionUpdate;
464 } else {
465 GatheredUpdates.insert(
466 std::make_pair(
467 (*setiter),
468 factor*PositionUpdate) );
469 }
470 }
471 }
472 }
473
474 for(typename AtomSetMixin<T>::iterator iter = AtomicForceManipulator<T>::atoms.begin();
475 iter != AtomicForceManipulator<T>::atoms.end(); ++iter) {
476 atom &walker = *(*iter);
477 // extract largest components for showing progress of annealing
478 const Vector currentGradient = walker.getAtomicForce();
479 for(size_t i=0;i<NDIM;++i)
480 if (currentGradient[i] > maxComponents[i])
481 maxComponents[i] = currentGradient[i];
482 }
483
484 // remove center of weight translation from gathered updates
485 Vector CommonTranslation;
486 for (std::map<atomId_t, Vector>::const_iterator iter = GatheredUpdates.begin();
487 iter != GatheredUpdates.end(); ++iter) {
488 const Vector &update = iter->second;
489 CommonTranslation += update;
490 }
491 CommonTranslation *= 1./(double)GatheredUpdates.size();
492 LOG(3, "DEBUG: Subtracting common translation " << CommonTranslation
493 << " from all updates.");
494
495 // apply the gathered updates and set remnant gradients for atomic annealing
496 for (std::map<atomId_t, Vector>::const_iterator iter = GatheredUpdates.begin();
497 iter != GatheredUpdates.end(); ++iter) {
498 const atomId_t &atomid = iter->first;
499 const Vector &update = iter->second;
500 atom* const walker = World::getInstance().getAtom(AtomById(atomid));
501 ASSERT( walker != NULL,
502 "ForceAnnealing() - walker with id "+toString(atomid)+" has suddenly disappeared.");
503 LOG(3, "DEBUG: Applying update " << update << " to atom #" << atomid
504 << ", namely " << *walker);
505 walker->setPosition( walker->getPosition() + update - CommonTranslation);
506// walker->setAtomicForce( RemnantGradient_per_atom[walker->getId()] );
507 }
508
509 return maxComponents;
510 }
511
512 /** Reset function to unset static entities and artificial velocities.
513 *
514 */
515 void reset()
516 {
517 currentDeltat = 0.;
518 currentStep = 0;
519 }
520
521private:
522 //!> contains the current step in relation to maxsteps
523 static size_t currentStep;
524 //!> contains the maximum number of steps, determines initial and final step with currentStep
525 size_t maxSteps;
526 static double currentDeltat;
527 //!> minimum deltat for internal while loop (adaptive step width)
528 static double MinimumDeltat;
529 //!> contains the maximum bond graph distance up to which shifts of a single atom are spread
530 const int max_distance;
531 //!> the shifted is dampened by this factor with the power of the bond graph distance to the shift causing atom
532 const double damping_factor;
533};
534
535template <class T>
536double ForceAnnealing<T>::currentDeltat = 0.;
537template <class T>
538size_t ForceAnnealing<T>::currentStep = 0;
539template <class T>
540double ForceAnnealing<T>::MinimumDeltat = 1e-8;
541
542#endif /* FORCEANNEALING_HPP_ */
Note: See TracBrowser for help on using the repository browser.