Changeset 1999d8 for src


Ignore:
Timestamp:
Aug 7, 2009, 12:46:27 PM (15 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:
133d56
Parents:
f3278b
Message:

BUGFIX: PointCloud implementation in molecule stopped one before last, IsLast() -> IsEnd()

Location:
src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/linkedcell.cpp

    rf3278b r1999d8  
    5454  }
    5555  set->GoToFirst();
    56   while (!set->IsLast()) {
     56  while (!set->IsEnd()) {
    5757    Walker = set->GetPoint();
    5858    for (int i=0;i<NDIM;i++) {
     
    8787  cout << Verbose(2) << "Filling cells ... ";
    8888  set->GoToFirst();
    89   while (!set->IsLast()) {
     89  while (!set->IsEnd()) {
    9090    Walker = set->GetPoint();
    9191    for (int i=0;i<NDIM;i++) {
  • src/molecules.cpp

    rf3278b r1999d8  
    124124void molecule::GoToNext()
    125125{
    126   if (InternalPointer->next != end)
     126  if (InternalPointer != end)
    127127    InternalPointer = InternalPointer->next;
    128128};
     
    162162 * \return true - current atom is last one, false - is not last one
    163163 */
    164 bool molecule::IsLast()
    165 {
    166   return (InternalPointer->next == end);
     164bool molecule::IsEnd()
     165{
     166  return (InternalPointer == end);
    167167};
    168168
  • src/molecules.hpp

    rf3278b r1999d8  
    150150  void GoToLast();
    151151  bool IsEmpty();
    152   bool IsLast();
     152  bool IsEnd();
    153153
    154154  /// remove atoms from molecule.
  • src/tesselation.cpp

    rf3278b r1999d8  
    912912
    913913  cloud->GoToFirst();
    914   while (!cloud->IsLast()) {  // we only have to go once through all points, as boundary can become only bigger
     914  while (!cloud->IsEnd()) {  // we only have to go once through all points, as boundary can become only bigger
    915915    Walker = cloud->GetPoint();
    916916    *out << Verbose(2) << "Current point is " << *Walker << "." << endl;
     
    13251325  cout << Verbose(0) << "Begin of Find_next_suitable_triangle\n";
    13261326  bool result = true;
    1327   bool degenerateTriangle = false;
    13281327  CandidateList *Opt_Candidates = new CandidateList();
    13291328
  • src/tesselation.hpp

    rf3278b r1999d8  
    163163  virtual void GoToLast() {};
    164164  virtual bool IsEmpty() { return false; };
    165   virtual bool IsLast() { return false; };
     165  virtual bool IsEnd() { return false; };
    166166};
    167167
Note: See TracChangeset for help on using the changeset viewer.