Changeset b794f5
- Timestamp:
- Oct 3, 2016, 5:26:53 PM (9 years ago)
- Branches:
- Fix_FitPotential_needs_atomicnumbers
- Children:
- ce0b0c
- Parents:
- 7ec605
- Location:
- src/Potentials
- Files:
-
- 10 edited
-
EmpiricalPotential.hpp (modified) (1 diff)
-
Specifics/ConstantPotential.hpp (modified) (2 diffs)
-
Specifics/FourBodyPotential_Improper.hpp (modified) (2 diffs)
-
Specifics/FourBodyPotential_Torsion.cpp (modified) (1 diff)
-
Specifics/FourBodyPotential_Torsion.hpp (modified) (2 diffs)
-
Specifics/ManyBodyPotential_Tersoff.hpp (modified) (2 diffs)
-
Specifics/PairPotential_Harmonic.hpp (modified) (2 diffs)
-
Specifics/PairPotential_LennardJones.hpp (modified) (2 diffs)
-
Specifics/PairPotential_Morse.hpp (modified) (2 diffs)
-
Specifics/ThreeBodyPotential_Angle.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Potentials/EmpiricalPotential.hpp
r7ec605 rb794f5 86 86 /** Provides the specific subgraph for this specific empirical potential. 87 87 * 88 * \return subgraph encoded as boost::graph's adjacency_list88 * \return subgraph describing the potential's bonding model 89 89 */ 90 virtual boost::adjacency_list<>getSubgraph() const=0;90 virtual const PotentialSubgraph& getSubgraph() const=0; 91 91 92 92 /** Default constructor for class EmpiricalPotential. -
src/Potentials/Specifics/ConstantPotential.hpp
r7ec605 rb794f5 187 187 /** Provides the specific subgraph for this specific empirical potential. 188 188 * 189 * \return subgraph encoded as boost::graph's adjacency_list 190 */ 191 boost::adjacency_list<> getSubgraph() const; 189 * \return subgraph describing the potential's bonding model 190 */ 191 const PotentialSubgraph& getSubgraph() const 192 { return subgraph; } 192 193 193 194 private: … … 203 204 //!> internal coordinator object for converting arguments_t 204 205 static Coordinator::ptr coordinator; 206 207 //!> internal subgraph describing the subgraph modeled by this potential 208 static const PotentialSubgraph subgraph; 205 209 }; 206 210 -
src/Potentials/Specifics/FourBodyPotential_Improper.hpp
r7ec605 rb794f5 55 55 /** Provides the specific subgraph for this specific empirical potential. 56 56 * 57 * \return subgraph encoded as boost::graph's adjacency_list57 * \return subgraph describing the potential's bonding model 58 58 */ 59 boost::adjacency_list<> getSubgraph() const; 59 const PotentialSubgraph& getSubgraph() const 60 { return subgraph; } 60 61 61 62 public: … … 98 99 //!> internal coordinator object for converting arguments_t 99 100 static Coordinator::ptr coordinator; 101 102 //!> internal subgraph describing the subgraph modeled by this potential 103 static const PotentialSubgraph subgraph; 100 104 }; 101 105 -
src/Potentials/Specifics/FourBodyPotential_Torsion.cpp
r7ec605 rb794f5 261 261 } 262 262 263 boost::adjacency_list<> 263 const PotentialSubgraph& 264 264 FourBodyPotential_Torsion::getSubgraph() const 265 265 { 266 return boost::adjacency_list<> (4);267 } 266 return subgraph; 267 } -
src/Potentials/Specifics/FourBodyPotential_Torsion.hpp
r7ec605 rb794f5 194 194 /** Provides the specific subgraph for this specific empirical potential. 195 195 * 196 * \return subgraph encoded as boost::graph's adjacency_list 197 */ 198 boost::adjacency_list<> getSubgraph() const; 196 * \return subgraph describing the potential's bonding model 197 */ 198 const PotentialSubgraph& getSubgraph() const 199 { return subgraph; } 199 200 200 201 protected: … … 219 220 //!> internal coordinator object for converting arguments_t 220 221 static Coordinator::ptr coordinator; 222 223 //!> internal subgraph describing the subgraph modeled by this potential 224 static const PotentialSubgraph subgraph; 221 225 }; 222 226 -
src/Potentials/Specifics/ManyBodyPotential_Tersoff.hpp
r7ec605 rb794f5 216 216 /** Provides the specific subgraph for this specific empirical potential. 217 217 * 218 * \return subgraph encoded as boost::graph's adjacency_list 219 */ 220 boost::adjacency_list<> getSubgraph() const; 218 * \return subgraph describing the potential's bonding model 219 */ 220 const PotentialSubgraph& getSubgraph() const 221 { return subgraph; } 221 222 222 223 private: … … 370 371 //!> internal coordinator object for converting arguments_t 371 372 static Coordinator::ptr coordinator; 373 374 //!> internal subgraph describing the subgraph modeled by this potential 375 static const PotentialSubgraph subgraph; 372 376 }; 373 377 -
src/Potentials/Specifics/PairPotential_Harmonic.hpp
r7ec605 rb794f5 189 189 /** Provides the specific subgraph for this specific empirical potential. 190 190 * 191 * \return subgraph encoded as boost::graph's adjacency_list 192 */ 193 boost::adjacency_list<> getSubgraph() const; 191 * \return subgraph describing the potential's bonding model 192 */ 193 const PotentialSubgraph& getSubgraph() const 194 { return subgraph; } 194 195 195 196 private: … … 205 206 //!> internal coordinator object for converting arguments_t 206 207 static Coordinator::ptr coordinator; 208 209 //!> internal subgraph describing the subgraph modeled by this potential 210 static const PotentialSubgraph subgraph; 207 211 }; 208 212 -
src/Potentials/Specifics/PairPotential_LennardJones.hpp
r7ec605 rb794f5 190 190 /** Provides the specific subgraph for this specific empirical potential. 191 191 * 192 * \return subgraph encoded as boost::graph's adjacency_list 193 */ 194 boost::adjacency_list<> getSubgraph() const; 192 * \return subgraph describing the potential's bonding model 193 */ 194 const PotentialSubgraph& getSubgraph() const 195 { return subgraph; } 195 196 196 197 private: … … 212 213 //!> internal coordinator object for converting arguments_t 213 214 static Coordinator::ptr coordinator; 215 216 //!> internal subgraph describing the subgraph modeled by this potential 217 static const PotentialSubgraph subgraph; 214 218 }; 215 219 -
src/Potentials/Specifics/PairPotential_Morse.hpp
r7ec605 rb794f5 191 191 /** Provides the specific subgraph for this specific empirical potential. 192 192 * 193 * \return subgraph encoded as boost::graph's adjacency_list 194 */ 195 boost::adjacency_list<> getSubgraph() const; 193 * \return subgraph describing the potential's bonding model 194 */ 195 const PotentialSubgraph& getSubgraph() const 196 { return subgraph; } 196 197 197 198 private: … … 207 208 //!> internal coordinator object for converting arguments_t 208 209 static Coordinator::ptr coordinator; 210 211 //!> internal subgraph describing the subgraph modeled by this potential 212 static const PotentialSubgraph subgraph; 209 213 }; 210 214 -
src/Potentials/Specifics/ThreeBodyPotential_Angle.hpp
r7ec605 rb794f5 191 191 /** Provides the specific subgraph for this specific empirical potential. 192 192 * 193 * \return subgraph encoded as boost::graph's adjacency_list 194 */ 195 boost::adjacency_list<> getSubgraph() const; 193 * \return subgraph describing the potential's bonding model 194 */ 195 const PotentialSubgraph& getSubgraph() const 196 { return subgraph; } 196 197 197 198 private: … … 214 215 //!> internal coordinator object for converting arguments_t 215 216 static Coordinator::ptr coordinator; 217 218 //!> internal subgraph describing the subgraph modeled by this potential 219 static const PotentialSubgraph subgraph; 216 220 }; 217 221
Note:
See TracChangeset
for help on using the changeset viewer.
