Changeset 6dfa37


Ignore:
Timestamp:
Jul 20, 2017, 9:38:38 AM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
ForceAnnealing_with_BondGraph_continued
Children:
3a5de5
Parents:
8270be
git-author:
Frederik Heber <frederik.heber@…> (06/27/17 21:04:40)
git-committer:
Frederik Heber <frederik.heber@…> (07/20/17 09:38:38)
Message:

ForceAnnealing accepts option deltat.

Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/MoleculeAction/ForceAnnealingAction.cpp

    r8270be r6dfa37  
    113113  ForceAnnealing<std::vector<atom *> > optimizer(
    114114      set,
     115      params.deltat.get(),
    115116      true,
    116117      params.steps.get(),
  • src/Actions/MoleculeAction/ForceAnnealingAction.def

    r8270be r6dfa37  
    99#include <boost/filesystem/path.hpp>
    1010
     11#include <limits>
     12
    1113#include "Parameters/Validators/DummyValidator.hpp"
    1214#include "Parameters/Validators/GenericValidators.hpp"
     
    1719// ValueStorage by the token "Z" -> first column: int, Z, "Z"
    1820// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
    19 #define paramtypes (boost::filesystem::path)(unsigned int)(bool)(int)(double)(bool)
    20 #define paramtokens ("forces-file")("steps")("output-every-step")("max-distance")("damping-factor")("use-bondgraph")
    21 #define paramdescriptions ("file containing")("fixed number of optimization steps to be performed")("whether WorldTime should be increased and output written after every step, useful if optimization might hang")("maximum distance to which bond graph is taken into account")("damping factor for decreasing the shift with bond graph distance from the causing site")("whether annealing should take place focusing on atoms alone or on the bonds (faster)")
    22 #define paramdefaults (PARAM_DEFAULT(""))(NOPARAM_DEFAULT)(PARAM_DEFAULT("0"))(PARAM_DEFAULT(0))(PARAM_DEFAULT(0.5))(PARAM_DEFAULT(0))
    23 #define paramreferences (forcesfile)(steps)(DoOutput)(MaxDistance)(DampingFactor)(UseBondGraph)
     21#define paramtypes (boost::filesystem::path)(double)(unsigned int)(bool)(int)(double)(bool)
     22#define paramtokens ("forces-file")("deltat")("steps")("output-every-step")("max-distance")("damping-factor")("use-bondgraph")
     23#define paramdescriptions ("file containing")("basic step width to be used")("fixed number of optimization steps to be performed")("whether WorldTime should be increased and output written after every step, useful if optimization might hang")("maximum distance to which bond graph is taken into account")("damping factor for decreasing the shift with bond graph distance from the causing site")("whether annealing should take place focusing on atoms alone or on the bonds (faster)")
     24#define paramdefaults (PARAM_DEFAULT(""))(PARAM_DEFAULT(0.1))(NOPARAM_DEFAULT)(PARAM_DEFAULT("0"))(PARAM_DEFAULT(0))(PARAM_DEFAULT(0.5))(PARAM_DEFAULT(0))
     25#define paramreferences (forcesfile)(deltat)(steps)(DoOutput)(MaxDistance)(DampingFactor)(UseBondGraph)
    2426#define paramvalids \
    2527(DummyValidator< boost::filesystem::path >()) \
     28(RangeValidator< double >(std::numeric_limits<double>::min(), std::numeric_limits<double>::max())) \
    2629(NotZeroValidator< unsigned int >()) \
    2730(DummyValidator<bool>()) \
  • src/Dynamics/ForceAnnealing.hpp

    r8270be r6dfa37  
    7070  ForceAnnealing(
    7171      AtomSetMixin<T> &_atoms,
     72      const double _Deltat,
    7273      bool _IsAngstroem,
    7374      const size_t _maxSteps,
    7475      const int _max_distance,
    7576      const double _damping_factor) :
    76     AtomicForceManipulator<T>(_atoms, 1., _IsAngstroem),
     77    AtomicForceManipulator<T>(_atoms, _Deltat, _IsAngstroem),
    7778    maxSteps(_maxSteps),
    7879    max_distance(_max_distance),
    7980    damping_factor(_damping_factor)
    8081  {}
     82
    8183  /** Destructor of class ForceAnnealing.
    8284   *
     
    120122        anneal(_CurrentTimeStep, _offset, maxComponents);
    121123    }
    122 
    123124
    124125    LOG(1, "STATUS: Largest remaining force components at step #"
Note: See TracChangeset for help on using the changeset viewer.