Changeset e83a7e


Ignore:
Timestamp:
Aug 31, 2016, 12:35:41 PM (9 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Gui_Fixes
Children:
9bf59c
Parents:
23a43a
git-author:
Frederik Heber <heber@…> (08/31/16 12:35:30)
git-committer:
Frederik Heber <heber@…> (08/31/16 12:35:41)
Message:

FitCompoundPotentialAction checks whether potentials are registered yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/PotentialAction/FitCompoundPotentialAction.cpp

    r23a43a re83a7e  
    6161
    6262ActionState::ptr PotentialFitCompoundPotentialAction::performCall() {
     63  // check whether there are any potentials registered
     64  if (PotentialRegistry::getInstance().getBeginIter() ==
     65      PotentialRegistry::getInstance().getEndIter()) {
     66    ELOG(1, "Cannot fit a compound potential as no potentials are registered yet.");
     67    return Action::failure;
     68  }
     69
    6370  // get homologies container
    6471  HomologyContainer &homologies = World::getInstance().getHomologies();
Note: See TracChangeset for help on using the changeset viewer.