Changeset ac79b2


Ignore:
Timestamp:
Aug 2, 2017, 8:27:30 PM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
ForceAnnealing_with_BondGraph_continued
Children:
8bfb58
Parents:
ef59aa
Message:

tempcommit: Merge with 698308e2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Dynamics/ForceAnnealing.hpp

    ref59aa rac79b2  
    435435        LOG(4, "DEBUG: current position is " << currentPosition);
    436436        LOG(4, "DEBUG: difference in position is " << PositionDifference);
     437        LOG(4, "DEBUG: bondvector is " << BondVector);
     438        const double projected_PositionDifference = PositionDifference.ScalarProduct(BondVector);
     439        LOG(4, "DEBUG: difference in position projected onto bondvector is "
     440            << projected_PositionDifference);
    437441        LOG(4, "DEBUG: abs. difference in forces is " << bondforcedifference);
    438         LOG(4, "DEBUG: bondvector is " << BondVector);
    439442
    440443        // calculate step width
    441444        double stepwidth =
    442             fabs(PositionDifference.ScalarProduct(BondVector))/bondforcedifference;
     445            fabs(projected_PositionDifference)/bondforcedifference;
    443446        if (fabs(stepwidth) < 1e-10) {
    444447          // dont' warn in first step, deltat usage normal
Note: See TracChangeset for help on using the changeset viewer.