Ignore:
Timestamp:
May 19, 2021, 7:06:29 PM (4 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
9b0dcd
Parents:
698185
git-author:
Frederik Heber <frederik.heber@…> (05/19/21 11:00:24)
git-committer:
Frederik Heber <frederik.heber@…> (05/19/21 19:06:29)
Message:

FIX: StreamFactory did not set BindingModel.

  • we streamed into a default potential instance but this does not set the BindingModel. Now, we use the particle types from that deseralized instance and instantiate a new potential that then also generates the BindingModel.
  • added output operator to BindingModel.
  • TEST: This fixes the fit-compound-potential regression test case.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Potentials/StreamFactory_EmpiricalPotential.hpp

    r698185 rc98620  
    1616
    1717#include "StreamFactory.hpp"
     18
     19#include <string>
    1820
    1921#include "Potentials/EmpiricalPotential.hpp"
     
    4850   */
    4951  virtual EmpiricalPotential* getDefaultPotential(const std::string &_name) const=0;
     52
     53  virtual EmpiricalPotential *createInstance(
     54      const std::string &potentialtype,
     55      const SerializablePotential::ParticleTypes_t &charges) const=0;
     56
    5057};
    5158
Note: See TracChangeset for help on using the changeset viewer.