Ignore:
Timestamp:
Aug 30, 2025, 2:41:40 PM (2 months ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
a0d8aa
Parents:
72b6d7
git-author:
Frederik Heber <frederik.heber@…> (08/16/25 10:32:39)
git-committer:
Frederik Heber <frederik.heber@…> (08/30/25 14:41:40)
Message:

StreamFactory_EmpiricalPotential creates potential instances with params.

  • EmpiricalPotential expose getter and setter for parameters.
  • potential and stream factor for EmpiricalPotential have new createInstance that also takes a present parameter set.
  • this is used in StreamFactory_EmpiricalPotential::createInstance from istream to create the correct instance with parameters directly.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Potentials/StreamFactory_EmpiricalPotential.hpp

    r72b6d7 re83114  
    5555      const SerializablePotential::ParticleTypes_t &charges) const=0;
    5656
     57  virtual EmpiricalPotential *createInstance(
     58      const std::string &potentialtype,
     59      const SerializablePotential::ParticleTypes_t &charges,
     60                        const FunctionModel::parameters_t &params) const=0;
     61
    5762};
    5863
Note: See TracChangeset for help on using the changeset viewer.