Changeset db8960


Ignore:
Timestamp:
Jan 2, 2012, 1:34:41 PM (13 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, 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_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
a5b2b6b
Parents:
bbab87
git-author:
Frederik Heber <heber@…> (12/20/11 10:25:43)
git-committer:
Frederik Heber <heber@…> (01/02/12 13:34:41)
Message:

Shifted functionality of adding, moving, and deleting nodes to internal functions.

  • internal functions are so far short-wired to outside.
  • this is preparatory for caching changes (lazy evaluation).
Location:
src/LinkedCell
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/LinkedCell/LinkedCell_Model.cpp

    rbbab87 rdb8960  
    266266}
    267267
    268 /** Adds a node to the linked cell structure
     268/** Adds an update to the list of lazy changes to add a node.
    269269 *
    270270 * @param Walker node to add
    271271 */
    272272void LinkedCell::LinkedCell_Model::addNode(const TesselPoint *Walker)
     273{
     274  addNode_internal(Walker);
     275}
     276
     277/** Adds an update to the list of lazy changes to add remove a node.
     278 *
     279 * We do nothing of Walker is not found
     280 *
     281 * @param Walker node to remove
     282 */
     283void LinkedCell::LinkedCell_Model::deleteNode(const TesselPoint *Walker)
     284{
     285  deleteNode_internal(Walker);
     286}
     287
     288/** Adds an update to the list of lazy changes to move a node.
     289 *
     290 * @param Walker node who has moved.
     291 */
     292void LinkedCell::LinkedCell_Model::moveNode(const TesselPoint *Walker)
     293{
     294  moveNode_internal(Walker);
     295}
     296
     297/** Internal function to add a node to the linked cell structure
     298 *
     299 * @param Walker node to add
     300 */
     301void LinkedCell::LinkedCell_Model::addNode_internal(const TesselPoint *Walker)
    273302{
    274303  tripleIndex index = getIndexToVector(Walker->getPosition());
     
    288317}
    289318
    290 /** Removes a node to the linked cell structure
     319/** Internal function to remove a node to the linked cell structure
    291320 *
    292321 * We do nothing of Walker is not found
     
    294323 * @param Walker node to remove
    295324 */
    296 void LinkedCell::LinkedCell_Model::deleteNode(const TesselPoint *Walker)
     325void LinkedCell::LinkedCell_Model::deleteNode_internal(const TesselPoint *Walker)
    297326{
    298327  MapPointToCell::iterator iter = CellLookup.begin();
     
    308337}
    309338
    310 /** Move Walker from current cell to another on position change.
     339/** Internal function to move node from current cell to another on position change.
    311340 *
    312341 * @param Walker node who has moved.
    313342 */
    314 void LinkedCell::LinkedCell_Model::moveNode(const TesselPoint *Walker)
     343void LinkedCell::LinkedCell_Model::moveNode_internal(const TesselPoint *Walker)
    315344{
    316345  ASSERT(0, "LinkedCell_Model::moveNode() - not implemented yet.");
  • src/LinkedCell/LinkedCell_Model.hpp

    rbbab87 rdb8960  
    8585    void stopListening();
    8686
     87    void addNode_internal(const TesselPoint *Walker);
     88    void deleteNode_internal(const TesselPoint *Walker);
     89    void moveNode_internal(const TesselPoint *Walker);
     90
    8791    LinkedCellArray::index getSize(const size_t dim) const;
    8892
Note: See TracChangeset for help on using the changeset viewer.