Ignore:
Timestamp:
Aug 31, 2016, 12:37:14 PM (9 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Gui_Fixes
Children:
b9180c9
Parents:
e83a7e
Message:

PotentialTrainer checks whether compound potential contains potentials before fitting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Potentials/PotentialTrainer.cpp

    re83a7e r9bf59c  
    7979  ASSERT( model != NULL,
    8080      "PotentialTrainer::operator() - model is NULL.");
     81
     82  if (model->begin() == model->end()) {
     83    ELOG(1, "Could not find any suitable potentials for the compound potential.");
     84    return false;
     85  }
    8186
    8287  /******************** TRAINING ********************/
Note: See TracChangeset for help on using the changeset viewer.