Ignore:
Timestamp:
Aug 30, 2025, 2:41:40 PM (8 weeks 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/PotentialFactory.hpp

    r72b6d7 re83114  
    5959      const SerializablePotential::ParticleTypes_t &charges) const;
    6060
     61  /** Creates an instance of the requested potential.
     62   *
     63   * \param potentialtype key of potential to create
     64   * \param charges charges for which the potential is (to be) fitted
     65   */
     66  EmpiricalPotential *createInstance(
     67      const std::string &potentialtype,
     68      const SerializablePotential::ParticleTypes_t &charges,
     69                        const FunctionModel::parameters_t &params) const;
     70
    6171  //!> typedef for map to lookup type for a given name
    6272  typedef std::map< std::string, enum PotentialTypes > NameToType_t;
Note: See TracChangeset for help on using the changeset viewer.