Changeset 11bab4


Ignore:
Timestamp:
Oct 3, 2016, 11:26:02 AM (9 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Fix_FitPotential_needs_atomicnumbers
Children:
de81b9
Parents:
0b7036
Message:

Extractors now need a subgraph and the set of particle types.

Location:
src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • src/FunctionApproximation/Extractors.cpp

    r0b7036 r11bab4  
    160160FunctionModel::list_of_arguments_t Extractors::reorderArgumentsByParticleTypes(
    161161    const FunctionModel::list_of_arguments_t &listargs,
    162     const ParticleTypes_t &_types
     162    const ParticleTypes_t &_types,
     163    const boost::adjacency_list<> &_subgraph
    163164    )
    164165{
     
    313314FunctionModel::list_of_arguments_t Extractors::filterArgumentsByParticleTypes(
    314315    const FunctionModel::arguments_t &args,
    315     const ParticleTypes_t &_types
     316    const ParticleTypes_t &_types,
     317    const boost::adjacency_list<> &_subgraph
    316318    )
    317319{
  • src/FunctionApproximation/Extractors.hpp

    r0b7036 r11bab4  
    104104   *
    105105   * \param listargs list of arguments to reorder each
    106    * \param _types particle type vector
     106   * \param _types particle type vector which gives the order of the distance arguments
     107   * \param _subgraph specifies the subgraph which we need to find in the arguments
    107108   * \return reordered args
    108109   */
    109110  FunctionModel::list_of_arguments_t reorderArgumentsByParticleTypes(
    110111      const FunctionModel::list_of_arguments_t &eachargs,
    111       const ParticleTypes_t &_types
     112      const ParticleTypes_t &_types,
     113      const boost::adjacency_list<> &_subgraph
    112114      );
    113115
     
    118120   *
    119121   * \param args arguments to reorder
    120    * \param _types particle type vector
     122   * \param _types particle type vector which gives the order of the distance arguments
     123   * \param _subgraph specifies the subgraph which we need to find in the arguments
    121124   * \return filtered list of args
    122125   */
    123126  FunctionModel::list_of_arguments_t filterArgumentsByParticleTypes(
    124127      const FunctionModel::arguments_t &args,
    125       const ParticleTypes_t &_types
     128      const ParticleTypes_t &_types,
     129      const boost::adjacency_list<> &_subgraph
    126130      );
    127131
  • src/Potentials/Specifics/ConstantPotential.cpp

    r0b7036 r11bab4  
    184184      boost::bind(&Extractors::filterArgumentsByParticleTypes,
    185185          _1,
    186           getParticleTypes());
     186          getParticleTypes(), getSubgraph());
    187187  return returnfunction;
    188188}
  • src/Potentials/Specifics/ManyBodyPotential_Tersoff.cpp

    r0b7036 r11bab4  
    704704      boost::bind(&Extractors::filterArgumentsByParticleTypes,
    705705          _1,
    706           getParticleTypes());
     706          getParticleTypes(), getSubgraph());
    707707  return returnfunction;
    708708}
  • src/Potentials/Specifics/PairPotential_Harmonic.cpp

    r0b7036 r11bab4  
    202202      boost::bind(&Extractors::filterArgumentsByParticleTypes,
    203203          _1,
    204           getParticleTypes());
     204          getParticleTypes(), getSubgraph());
    205205  return returnfunction;
    206206}
  • src/Potentials/Specifics/PairPotential_LennardJones.cpp

    r0b7036 r11bab4  
    212212      boost::bind(&Extractors::filterArgumentsByParticleTypes,
    213213          _1,
    214           getParticleTypes());
     214          getParticleTypes(), getSubgraph());
    215215  return returnfunction;
    216216}
  • src/Potentials/Specifics/PairPotential_Morse.cpp

    r0b7036 r11bab4  
    228228      boost::bind(&Extractors::filterArgumentsByParticleTypes,
    229229          _1,
    230           getParticleTypes());
     230          getParticleTypes(), getSubgraph());
    231231  return returnfunction;
    232232}
  • src/Potentials/Specifics/ThreeBodyPotential_Angle.cpp

    r0b7036 r11bab4  
    230230        boost::bind(&Extractors::filterArgumentsByParticleTypes,
    231231            _1,
    232             getParticleTypes()),
    233         getParticleTypes()
     232            getParticleTypes(), getSubgraph()),
     233        getParticleTypes(), getSubgraph()
    234234      );
    235235  return returnfunction;
Note: See TracChangeset for help on using the changeset viewer.