Changeset 1e4f0a for src/Actions/MoleculeAction/ForceAnnealingAction.cpp
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/MoleculeAction/ForceAnnealingAction.cpp
r15acdb r1e4f0a 35 35 //#include "CodePatterns/MemDebug.hpp" 36 36 37 #include "Actions/ActionExceptions.hpp" 38 #include "Actions/MakroAction.hpp" 37 39 #include "Actions/UndoRedoHelpers.hpp" 38 40 #include "Atom/atom.hpp" … … 126 128 // perform optimization step 127 129 LOG(1, "Structural optimization."); 128 optimizer(CurrentStep, 1, params.UseBondGraph.get());130 const bool StopStatus = optimizer(CurrentStep, 1, params.UseBondGraph.get()); 129 131 STATUS("Successfully optimized structure by one step."); 132 133 if (StopStatus && ActionQueue::getInstance().isMakroAction()) { 134 // send stop signal if we are taking part in MakroAction 135 MakroAction * const makroaction = 136 dynamic_cast<MakroAction *>( 137 const_cast<Action *>( 138 &ActionQueue::getInstance().getCurrentAction())); 139 if (makroaction != NULL) { 140 makroaction->setLoop(makroaction->getStep()); 141 } else { 142 ELOG(2, "ActionQueue said we are inside process, but current Action is not a process?"); 143 // do nothing 144 } 145 } 130 146 131 147 std::vector<AtomicInfo> RedoInfo;
Note:
See TracChangeset
for help on using the changeset viewer.
