Ignore:
Timestamp:
Nov 4, 2016, 9:37:52 AM (8 years ago)
Author:
Frederik Heber <heber@…>
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)
Message:

Added bonded flag to argument_t.

Location:
src/FunctionApproximation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/FunctionApproximation/FunctionArgument.cpp

    rd03800 r2ae400  
    4545  ost << "[(" << arg.indices.first << "," << arg.indices.second
    4646      << "), q(   " << arg.types.first << "," << arg.types.second << "),"
     47      << "bonded(" << (arg.bonded ? "true" : "false") << "),"
    4748      << "r=" << arg.distance;
    4849  return ost;
  • src/FunctionApproximation/FunctionArgument.hpp

    rd03800 r2ae400  
    4444    types( std::make_pair(0,0) ),
    4545    distance(0.),
    46     globalid(-1)
     46    globalid(-1),
     47    bonded(false)
    4748  {}
    4849
     
    5253   *
    5354   * \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) :
    5658    indices( std::make_pair(0,1) ),
    5759    types( std::make_pair(0,0) ),
    5860    distance(_distance),
    59     globalid(-1)
     61    globalid(-1),
     62    bonded(_bonded)
    6063  {}
    6164
     
    6467   * \param _indices pair of indices associated with the \a _distance
    6568   * \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) :
    6872    indices( _indices ),
    6973    types( std::make_pair(0,0) ),
    7074    distance(_distance),
    71     globalid(-1)
     75    globalid(-1),
     76    bonded(_bonded)
    7277  {}
    7378
     
    7782   * \param _types pair of particle type
    7883   * \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) :
    8191    indices( _indices ),
    8292    types( _types ),
    8393    distance(_distance),
    84     globalid(-1)
     94    globalid(-1),
     95    bonded(_bonded)
    8596  {}
    8697
     
    188199  //!> global id refers to some global index, e.g. the configuration id in training set
    189200  size_t globalid;
     201  //!> states whether this argument is between bonded (true) or nonbonded (false) atoms
     202  bool bonded;
    190203};
    191204
Note: See TracChangeset for help on using the changeset viewer.