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/EmpiricalPotential.hpp

    r72b6d7 re83114  
    9595  virtual unsigned int getParticleTypeNumber() const=0;
    9696
     97  /** Sets the parameters from a given vector.
     98   *
     99   * \param params vector of parameters, specific to a specialized potential
     100   */
     101  virtual void setParameters(const parameters_t &params)=0;
     102
     103  /** Getter for the parameter set for this specialized potential.
     104   *
     105   * \return vector of parameters
     106   */
     107  virtual parameters_t getParameters() const=0;
     108
    97109protected:
    98110  /** Default constructor for class EmpiricalPotential.
Note: See TracChangeset for help on using the changeset viewer.