Ignore:
Timestamp:
Oct 20, 2016, 8:54:23 PM (9 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, Candidate_v1.7.0, Candidate_v1.7.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_ForceAnnealing, Fix_ParseParticles, 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, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes, stable
Children:
72e40d0
Parents:
064b34
git-author:
Frederik Heber <heber@…> (09/27/16 09:58:43)
git-committer:
Frederik Heber <heber@…> (10/20/16 20:54:23)
Message:

FIX: BondedParticleInfo::MaxOrder and ::AdapativeOrder are now stored per trajectory step.

  • adapted uses in AdaptivityMap and Fragmentation as members are now protected.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Atom/atom_bondedparticleinfo.hpp

    r064b34 ra1c8fa  
    3737  friend class BondedParticle;
    3838public:
    39   unsigned char AdaptiveOrder;  //!< current present bond order at site (0 means "not set")
    40   unsigned char MaxOrder;  //!< desired maximum order of this atom (0 means "not set")
    4139
    42   BondedParticleInfo();
    43   virtual ~BondedParticleInfo();
     40  virtual ~BondedParticleInfo() {}
    4441
    4542  /** Pushes back another step in all trajectory vectors.
     
    6562  const BondList& getListOfBonds() const;
    6663
    67   /** Accessor to ListOfBonds of WorldTime::CurrentTime.
    68    *
    69    * Note, new empty BondList is returned if array entry at upper boundary is
    70    * accessed. Beyond std will issue exception due to out-of-range access.
    71    *
    72    * @return ListOfBonds[WorldTime::CurrentTime]
    73    */
    74 //  BondList& getListOfBonds();
    75 
    7664  /** Const Accessor ListOfBonds of any present time step.
    7765   *
     
    8169  const BondList& getListOfBondsAtStep(unsigned int _step) const;
    8270
    83   /** Accessor ListOfBonds of any present time step.
     71  /** Const getter for the MaxOrder property at current time step.
    8472   *
    85    * Note, new empty BondList is returned if array entry at upper boundary is
    86    * accessed. Beyond std will issue exception due to out-of-range access.
     73   * @return MaxOrder[Current world time step].
     74   */
     75  const unsigned char& getMaxOrder() const;
     76
     77  /** Const getter for the MaxOrder property at given \a _step.
    8778   *
    8879   * @param _step time step to access
    89    * @return ListOfBonds[_step].
     80   * @return MaxOrder[_step].
    9081   */
    91 //  BondList& getListOfBondsAtStep(unsigned int _step);
     82  const unsigned char& getMaxOrder(const unsigned int _step) const;
     83
     84  /** Setter for the MaxOrder property at current time step.
     85   *
     86   * @param _value value to set for MaxOrder at current time step
     87   */
     88  void setMaxOrder(const unsigned char _value);
     89
     90  /**Setter for the MaxOrder property at given \a _step.
     91   *
     92   * @param _step time step to access
     93   * @param _value value to set for MaxOrder at the desired time step
     94   * @return MaxOrder[_step].
     95   */
     96  void setMaxOrder(const unsigned int _step, const unsigned char _value);
     97
     98  /** Const getter for the AdaptiveOrder property at current time step.
     99   *
     100   * @return AdaptiveOrder[Current world time step].
     101   */
     102  const unsigned char& getAdaptiveOrder() const;
     103
     104  /** Const getter for the AdaptiveOrder property at given \a _step.
     105   *
     106   * @param _step time step to access
     107   * @return AdaptiveOrder[_step].
     108   */
     109  const unsigned char& getAdaptiveOrder(const unsigned int _step) const;
     110
     111  /** Setter for the AdaptiveOrder property at current time step.
     112   *
     113   * @param _value value to set for AdaptiveOrder at current time step
     114   */
     115  void setAdaptiveOrder(const unsigned char _value);
     116
     117  /** Setter for the AdaptiveOrder property at given \a _step.
     118   *
     119   * @param _step time step to access
     120   * @param _value value to set for AdaptiveOrder at the desired time step
     121   * @return AdaptiveOrder[_step].
     122   */
     123  void setAdaptiveOrder(const unsigned int _step, const unsigned char _value);
    92124
    93125protected:
     
    105137  BondTrajectory_t ListOfBonds; //!< list of all bonds
    106138  static BondList emptyList;  //!< empty list to return when step is not present
     139
     140  typedef std::map<unsigned int, unsigned char> OrderTrajectory_t;
     141  OrderTrajectory_t AdaptiveOrder;  //!< current present bond order at site (0 means "not set")
     142  OrderTrajectory_t MaxOrder;  //!< desired maximum order of this atom (0 means "not set")
    107143};
    108144
Note: See TracChangeset for help on using the changeset viewer.