Changeset c72112


Ignore:
Timestamp:
Mar 24, 2010, 12:54:47 PM (15 years ago)
Author:
Tillmann Crueger <crueger@…>
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:
05a97c
Parents:
760ef4
Message:

Repaired GetMAxId() method of molecule

Location:
src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • src/Patterns/Cacheable.hpp

    r760ef4 rc72112  
    128128
    129129    const bool isValid() const;
    130     const T& operator*() const;
     130    const T operator*() const;
    131131
    132132    // methods implemented for base-class Observer
     
    171171
    172172  template<typename T>
    173   const T& Cacheable<T>::operator*() const{
     173  const T Cacheable<T>::operator*() const{
    174174    // we can only use the cacheable when the owner is not changing at the moment
    175175    if(!owner->isBlocked()){
  • src/boundary.cpp

    r760ef4 rc72112  
    10441044  status = CheckListOfBaselines(TesselStruct);
    10451045
     1046  cout << "before correction" << endl;
     1047
    10461048  // store before correction
    1047   StoreTrianglesinFile(mol, (const Tesselation *&)TesselStruct, filename, "");
     1049  StoreTrianglesinFile(mol, TesselStruct, filename, "");
    10481050
    10491051  // correct degenerated polygons
     
    10551057  // write final envelope
    10561058  CalculateConcavityPerBoundaryPoint(TesselStruct);
    1057   StoreTrianglesinFile(mol, (const Tesselation *&)TesselStruct, filename, "");
     1059  cout << "after correction" << endl;
     1060  StoreTrianglesinFile(mol, TesselStruct, filename, "");
    10581061
    10591062  if (freeLC)
  • src/molecule.hpp

    r760ef4 rc72112  
    161161  Vector *GetCenter() const ;
    162162  TesselPoint *GetPoint() const ;
    163   //int GetMaxId() const;
     163  int GetMaxId() const;
    164164  void GoToNext() const ;
    165165  void GoToFirst() const ;
  • src/molecule_pointcloud.cpp

    r760ef4 rc72112  
    7878  return (InternalPointer == atoms.end());
    7979};
     80
     81int molecule::GetMaxId() const {
     82  return getAtomCount();
     83}
  • src/tesselation.cpp

    r760ef4 rc72112  
    368368    Counter++;
    369369  }
    370   cout << "Counter is now: " << Counter << endl;
    371370  ASSERT(Counter >= 3,"We have a triangle with only two distinct endpoints!");
    372371};
  • src/tesselationhelpers.cpp

    r760ef4 rc72112  
    868868    int i=cloud->GetMaxId();
    869869    int *LookupList = new int[i];
    870     for (cloud->GoToFirst(), i=0; !cloud->IsEnd(); cloud->GoToNext(), i++)
     870    for (cloud->GoToFirst(), i=0; !cloud->IsEnd(); cloud->GoToNext(), i++){
    871871      LookupList[i] = -1;
     872    }
    872873
    873874    // print atom coordinates
    874875    int Counter = 1;
    875876    TesselPoint *Walker = NULL;
    876     for (PointMap::const_iterator target = TesselStruct->PointsOnBoundary.begin(); target != TesselStruct->PointsOnBoundary.end(); target++) {
     877    for (PointMap::const_iterator target = TesselStruct->PointsOnBoundary.begin(); target != TesselStruct->PointsOnBoundary.end(); ++target) {
    877878      Walker = target->second->node;
    878879      LookupList[Walker->nr] = Counter++;
Note: See TracChangeset for help on using the changeset viewer.