Ignore:
Timestamp:
Dec 19, 2025, 11:29:38 PM (7 weeks ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.1, stable
Children:
25aa214
Parents:
29ba9a
git-author:
Frederik Heber <frederik.heber@…> (11/16/25 11:12:52)
git-committer:
Frederik Heber <frederik.heber@…> (12/19/25 23:29:38)
Message:

Actions relying on BondGraph fail if not bond table is loaded.

  • this is to ensure to not stumble over missing optimal bond lengths from the table, like with StretchBondAction.
  • TESTFIX: All regression tests that use these actions need to load the bond-table now.
File:
1 edited

Legend:

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

    r29ba9a rd2be22  
    4747#include "Bond/bond.hpp"
    4848#include "Bond/StretchBond.hpp"
     49#include "Graph/BondGraph.hpp"
    4950#include "Graph/BoostGraphHelpers.hpp"
    5051#include "World.hpp"
     
    6061ActionState::ptr MoleculeStretchBondAction::performCall()
    6162{
     63  BondGraph *BG = World::getInstance().getBondGraph();
     64  if (!BG->IsBondLengthTableLoaded()) {
     65    STATUS("BondLength table has not been loaded.");
     66    return Action::failure;
     67  }
     68
    6269  const std::vector< atom *> atoms = World::getInstance().getSelectedAtoms();
    6370  StretchBondUtil stretcher(atoms);
Note: See TracChangeset for help on using the changeset viewer.