Changeset 2ae400 for src/FunctionApproximation
- Timestamp:
- Nov 4, 2016, 9:37:52 AM (8 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_ChronosMutex, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, GeometryObjects, Gui_displays_atomic_force_velocity, IndependentFragmentGrids_IntegrationTest, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, RotateToPrincipalAxisSystem_UndoRedo, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, ThirdParty_MPQC_rebuilt_buildsystem, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes, stable
- Children:
- 814b8c
- Parents:
- d03800
- git-author:
- Frederik Heber <heber@…> (10/03/16 18:03:21)
- git-committer:
- Frederik Heber <heber@…> (11/04/16 09:37:52)
- Location:
- src/FunctionApproximation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/FunctionApproximation/FunctionArgument.cpp
rd03800 r2ae400 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
rd03800 r2ae400 44 44 types( std::make_pair(0,0) ), 45 45 distance(0.), 46 globalid(-1) 46 globalid(-1), 47 bonded(false) 47 48 {} 48 49 … … 52 53 * 53 54 * \param _distance distance argument 54 */ 55 argument_t(const double &_distance) : 55 * \param _bonded is this a distance between bonded (true) or nonbonded (false) atoms 56 */ 57 argument_t(const double &_distance, const bool _bonded = false) : 56 58 indices( std::make_pair(0,1) ), 57 59 types( std::make_pair(0,0) ), 58 60 distance(_distance), 59 globalid(-1) 61 globalid(-1), 62 bonded(_bonded) 60 63 {} 61 64 … … 64 67 * \param _indices pair of indices associated with the \a _distance 65 68 * \param _distance distance argument 66 */ 67 argument_t(const indices_t &_indices, const double &_distance) : 69 * \param _bonded is this a distance between bonded (true) or nonbonded (false) atoms 70 */ 71 argument_t(const indices_t &_indices, const double &_distance, const bool _bonded = false) : 68 72 indices( _indices ), 69 73 types( std::make_pair(0,0) ), 70 74 distance(_distance), 71 globalid(-1) 75 globalid(-1), 76 bonded(_bonded) 72 77 {} 73 78 … … 77 82 * \param _types pair of particle type 78 83 * \param _distance distance argument 79 */ 80 argument_t(const indices_t &_indices, const types_t &_types, const double &_distance) : 84 * \param _bonded is this a distance between bonded (true) or nonbonded (false) atoms 85 */ 86 argument_t( 87 const indices_t &_indices, 88 const types_t &_types, 89 const double &_distance, 90 const bool _bonded = false) : 81 91 indices( _indices ), 82 92 types( _types ), 83 93 distance(_distance), 84 globalid(-1) 94 globalid(-1), 95 bonded(_bonded) 85 96 {} 86 97 … … 188 199 //!> global id refers to some global index, e.g. the configuration id in training set 189 200 size_t globalid; 201 //!> states whether this argument is between bonded (true) or nonbonded (false) atoms 202 bool bonded; 190 203 }; 191 204
Note:
See TracChangeset
for help on using the changeset viewer.