Changeset 646f73 for src/Dynamics


Ignore:
Timestamp:
Jun 20, 2018, 8:20:43 AM (7 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
AutomationFragmentation_failures, Candidate_v1.6.1, ChemicalSpaceEvaluator, Exclude_Hydrogens_annealWithBondGraph, ForceAnnealing_with_BondGraph_contraction-expansion, StoppableMakroAction
Children:
559293
Parents:
83956e
git-author:
Frederik Heber <frederik.heber@…> (08/16/17 09:25:45)
git-committer:
Frederik Heber <frederik.heber@…> (06/20/18 08:20:43)
Message:

annealWithBondGraph_..() prints the largest update on default verbosity.

  • this helps in debugging when the fragmentation during StructOpt fails.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Dynamics/ForceAnnealing.hpp

    r83956e r646f73  
    608608
    609609    // apply the gathered updates and set remnant gradients for atomic annealing
     610    Vector LargestUpdate;
    610611    for (std::map<atomId_t, Vector>::const_iterator iter = GatheredUpdates.begin();
    611612        iter != GatheredUpdates.end(); ++iter) {
     
    617618      LOG(3, "DEBUG: Applying update " << update << " to atom #" << atomid
    618619          << ", namely " << *walker);
     620      for (size_t i=0;i<NDIM;++i)
     621        LargestUpdate[i] = std::max(LargestUpdate[i], fabs(update[i]));
    619622      walker->setPositionAtStep(_TimeStep,
    620623          walker->getPositionAtStep(CurrentTimeStep) + update); // - CommonTranslation);
    621624    }
     625    LOG(1, "STATUS: Largest absolute update components are " << LargestUpdate);
    622626
    623627    return maxComponents;
Note: See TracChangeset for help on using the changeset viewer.