Changeset 4d8385


Ignore:
Timestamp:
Aug 31, 2016, 2:06:50 PM (9 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Gui_Fixes
Children:
85056e
Parents:
b9180c9
Message:

tempcommit: Merge with 9bf59c97

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Potentials/PotentialTrainer.cpp

    rb9180c9 r4d8385  
    8080      "PotentialTrainer::operator() - model is NULL.");
    8181
    82   if (model->begin() == model->end()) {
    83     ELOG(1, "Could not find any suitable potentials for the compound potential.");
    84     return false;
     82  {
     83    CompoundPotential *compound = static_cast<CompoundPotential *>(model);
     84    if (compound->begin() == compound->end()) {
     85      ELOG(1, "Could not find any suitable potentials for the compound potential.");
     86      return false;
     87    }
    8588  }
    8689
Note: See TracChangeset for help on using the changeset viewer.