Changeset 866dec for src/Actions


Ignore:
Timestamp:
Apr 10, 2018, 6:43:11 AM (7 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
AutomationFragmentation_failures, Candidate_v1.6.1, ChemicalSpaceEvaluator, Enhanced_StructuralOptimization_continued, Exclude_Hydrogens_annealWithBondGraph, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_contraction-expansion, Gui_displays_atomic_force_velocity, PythonUI_with_named_parameters, StoppableMakroAction, TremoloParser_IncreasedPrecision
Children:
2bb3be
Parents:
216840
git-author:
Frederik Heber <frederik.heber@…> (06/27/17 21:10:02)
git-committer:
Frederik Heber <frederik.heber@…> (04/10/18 06:43:11)
Message:

ForceAnnealing no longer resets forces, AnalyseFragmentResults now sets forces.

  • before we added onto force vector in AnalyseFragmentResults.
  • if we do not reset forces in ForceAnnealing we can inspect the force components in the output file along the annealing run.
  • TESTFIX: data files for regression test AnalyseFragmentResults OBC and PBC changed because of modified way of resetting forces.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/FragmentationAction/AnalyseFragmentationResultsAction.cpp

    r216840 r866dec  
    585585}
    586586
    587 static void AddForces(
     587static void SetForces(
    588588    const IndexedVectors::indexedvectors_t &_forces,
    589589    const bool _IsAngstroem)
     
    603603    atom *_atom = World::getInstance().getAtom(AtomById(index));
    604604    if(_atom != NULL)
    605       _atom->setAtomicForce(_atom->getAtomicForce() + ForceVector);
     605      _atom->setAtomicForce(ForceVector);
    606606    else
    607607      ELOG(2, "Could not find atom to id " << index << ".");
     
    687687            shortrangeresults.Result_Force_fused.back()
    688688            ).getVectors();
    689     AddForces(shortrange_forces,IsAngstroem);
     689    SetForces(shortrange_forces,IsAngstroem);
    690690  } else {
    691691    LOG(1, "INFO: Full molecule not loaded, hence will not add forces to atoms.");
     
    760760              longrangeresults.Result_ForcesLongRangeIntegrated_fused.back()
    761761              ).getVectors();
    762       AddForces(longrange_forces,IsAngstroem);
     762      SetForces(longrange_forces,IsAngstroem);
    763763    } else {
    764764      LOG(1, "INFO: Full molecule not loaded, hence will not add forces to atoms.");
Note: See TracChangeset for help on using the changeset viewer.