Changeset cff66c for src/bondgraph.cpp


Ignore:
Timestamp:
Mar 1, 2011, 1:17:08 PM (14 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:
607eab
Parents:
111f4a
git-author:
Frederik Heber <heber@…> (02/28/11 15:16:58)
git-committer:
Frederik Heber <heber@…> (03/01/11 13:17:08)
Message:

Removed bool is Angstroem from all BondGraph::...() member functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/bondgraph.cpp

    r111f4a rcff66c  
    100100    const element * const Walker,
    101101    const element * const OtherWalker,
    102     range<double> &MinMaxDistance,
    103     bool IsAngstroem) const
     102    range<double> &MinMaxDistance) const
    104103{
    105104  MinMaxDistance.first = OtherWalker->getCovalentRadius() + Walker->getCovalentRadius();
     
    112111    const element * const Walker,
    113112    const element * const OtherWalker,
    114     range<double> &MinMaxDistance,
    115     bool IsAngstroem) const
     113    range<double> &MinMaxDistance) const
    116114{
    117115  ASSERT(BondLengthMatrix, "BondGraph::BondLengthMatrixMinMaxDistance() called without NULL BondLengthMatrix.");
     
    127125    const element * const Walker,
    128126    const element * const OtherWalker,
    129     range<double> &MinMaxDistance,
    130     bool IsAngstroem) const
     127    range<double> &MinMaxDistance) const
    131128{
    132129  if (BondLengthMatrix == NULL) {// safety measure if no matrix has been parsed yet
    133130    LOG(2, "INFO: Using Covalent radii criterion for [min,max) distances.");
    134     CovalentMinMaxDistance(Walker, OtherWalker, MinMaxDistance, IsAngstroem);
     131    CovalentMinMaxDistance(Walker, OtherWalker, MinMaxDistance);
    135132  } else {
    136133    LOG(2, "INFO: Using Covalent radii criterion for [min,max) distances.");
    137     BondLengthMatrixMinMaxDistance(Walker, OtherWalker, MinMaxDistance, IsAngstroem);
     134    BondLengthMatrixMinMaxDistance(Walker, OtherWalker, MinMaxDistance);
    138135  }
    139136}
     
    142139    const BondedParticle * const Walker,
    143140    const BondedParticle * const OtherWalker,
    144     range<double> &MinMaxDistance,
    145     bool IsAngstroem) const
    146 {
    147   getMinMaxDistance(Walker->getType(), OtherWalker->getType(),MinMaxDistance, IsAngstroem);
     141    range<double> &MinMaxDistance) const
     142{
     143  getMinMaxDistance(Walker->getType(), OtherWalker->getType(),MinMaxDistance);
    148144}
    149145
     
    151147    const BondedParticle * const Walker,
    152148    const BondedParticle * const OtherWalker,
    153     range<double> &MinMaxDistance,
    154     bool IsAngstroem) const
     149    range<double> &MinMaxDistance) const
    155150{
    156151  // use non-squared version
    157   getMinMaxDistance(Walker, OtherWalker,MinMaxDistance, IsAngstroem);
     152  getMinMaxDistance(Walker, OtherWalker,MinMaxDistance);
    158153  // and square
    159154  MinMaxDistance.first *= MinMaxDistance.first;
     
    195190                            "BondGraph::CreateAdjacency() - TesselPoint that was not an atom retrieved from LinkedNode");
    196191                        range<double> MinMaxDistanceSquared(0.,0.);
    197                         getMinMaxDistanceSquared(Walker, OtherWalker, MinMaxDistanceSquared, IsAngstroem);
     192                        getMinMaxDistanceSquared(Walker, OtherWalker, MinMaxDistanceSquared);
    198193                        const double distance = domain.periodicDistanceSquared(OtherWalker->getPosition(),Walker->getPosition());
    199194                        LOG(2, "INFO: Checking squared distance " << distance << " against typical bond length of " << MinMaxDistanceSquared << ".");
Note: See TracChangeset for help on using the changeset viewer.