Changeset fdd789
- Timestamp:
- Oct 3, 2016, 6:03:21 PM (9 years ago)
- Branches:
- Fix_FitPotential_needs_atomicnumbers
- Children:
- fc08c7
- Parents:
- 36f3d3
- Location:
- src/FunctionApproximation
- Files:
-
- 2 edited
-
FunctionArgument.cpp (modified) (1 diff)
-
FunctionArgument.hpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/FunctionApproximation/FunctionArgument.cpp
r36f3d3 rfdd789 45 45 ost << "[(" << arg.indices.first << "," << arg.indices.second 46 46 << "), q( " << arg.types.first << "," << arg.types.second << ")," 47 << "bonded(" << (arg.bonded ? "true" : "false") << ")," 47 48 << "r=" << arg.distance; 48 49 return ost; -
src/FunctionApproximation/FunctionArgument.hpp
r36f3d3 rfdd789 37 37 argument_t() : 38 38 distance(0.), 39 globalid(-1) 39 globalid(-1), 40 bonded(false) 40 41 {} 41 42 … … 45 46 * 46 47 * \param _distance distance argument 48 * \param _bonded is this a distance between bonded (true) or nonbonded (false) atoms 47 49 */ 48 argument_t(const double &_distance ) :50 argument_t(const double &_distance, const bool _bonded = false) : 49 51 SubgraphEdge( 50 52 indices_t( std::make_pair(0,1) ), 51 53 types_t( std::make_pair(0,0) )), 52 54 distance(_distance), 53 globalid(-1) 55 globalid(-1), 56 bonded(_bonded) 54 57 {} 55 58 … … 58 61 * \param _indices pair of indices associated with the \a _distance 59 62 * \param _distance distance argument 63 * \param _bonded is this a distance between bonded (true) or nonbonded (false) atoms 60 64 */ 61 argument_t(const indices_t &_indices, const double &_distance ) :65 argument_t(const indices_t &_indices, const double &_distance, const bool _bonded = false) : 62 66 SubgraphEdge( 63 67 indices, 64 68 types_t( std::make_pair(0,0) )), 65 69 distance(_distance), 66 globalid(-1) 70 globalid(-1), 71 bonded(_bonded) 67 72 {} 68 73 … … 72 77 * \param _types pair of particle type 73 78 * \param _distance distance argument 79 * \param _bonded is this a distance between bonded (true) or nonbonded (false) atoms 74 80 */ 75 argument_t(const indices_t &_indices, const types_t &_types, const double &_distance) : 81 argument_t( 82 const indices_t &_indices, 83 const types_t &_types, 84 const double &_distance, 85 const bool _bonded = false) : 76 86 SubgraphEdge(_indices, _types), 77 87 distance(_distance), 78 globalid(-1) 88 globalid(-1), 89 bonded(_bonded) 79 90 {} 80 91 … … 109 120 //!> global id refers to some global index, e.g. the configuration id in training set 110 121 size_t globalid; 122 //!> states whether this argument is between bonded (true) or nonbonded (false) atoms 123 bool bonded; 111 124 }; 112 125
Note:
See TracChangeset
for help on using the changeset viewer.
