Ignore:
Timestamp:
May 27, 2010, 10:46:54 AM (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:
1024cb
Parents:
8f215d (diff), 05a97c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'MoleculeStartEndSwitch' into StructureRefactoring

Conflicts:

molecuilder/src/Helpers/Assert.cpp
molecuilder/src/Helpers/Assert.hpp
molecuilder/src/Legacy/oldmenu.cpp
molecuilder/src/Makefile.am
molecuilder/src/Patterns/Cacheable.hpp
molecuilder/src/Patterns/Observer.cpp
molecuilder/src/Patterns/Observer.hpp
molecuilder/src/analysis_correlation.cpp
molecuilder/src/boundary.cpp
molecuilder/src/builder.cpp
molecuilder/src/config.cpp
molecuilder/src/helpers.hpp
molecuilder/src/molecule.cpp
molecuilder/src/molecule.hpp
molecuilder/src/molecule_dynamics.cpp
molecuilder/src/molecule_fragmentation.cpp
molecuilder/src/molecule_geometry.cpp
molecuilder/src/molecule_graph.cpp
molecuilder/src/moleculelist.cpp
molecuilder/src/tesselation.cpp
molecuilder/src/unittests/AnalysisCorrelationToSurfaceUnitTest.cpp
molecuilder/src/unittests/ObserverTest.cpp
molecuilder/src/unittests/ObserverTest.hpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tesselation.cpp

    r8f215d ra7b761b  
    2121#include "Plane.hpp"
    2222#include "Exceptions/LinearDependenceException.hpp"
     23#include "Helpers/Assert.hpp"
     24
    2325#include "Helpers/Assert.hpp"
    2426
     
    358360  // get ascending order of endpoints
    359361  PointMap OrderMap;
    360   for (int i = 0; i < 3; i++)
     362  for (int i = 0; i < 3; i++) {
    361363    // for all three lines
    362364    for (int j = 0; j < 2; j++) { // for both endpoints
     
    364366      // and we don't care whether insertion fails
    365367    }
     368  }
    366369  // set endpoints
    367370  int Counter = 0;
     
    372375    Counter++;
    373376  }
    374   if (Counter < 3) {
    375     DoeLog(0) && (eLog() << Verbose(0) << "We have a triangle with only two distinct endpoints!" << endl);
    376     performCriticalExit();
    377   }
    378 }
    379 ;
     377  ASSERT(Counter >= 3,"We have a triangle with only two distinct endpoints!");
     378};
     379
    380380
    381381/** Destructor of BoundaryTriangleSet.
     
    12321232;
    12331233
    1234 /** PointCloud implementation of GetTerminalPoint.
    1235  * Uses PointsOnBoundary and STL stuff.
    1236  */
    1237 TesselPoint * Tesselation::GetTerminalPoint() const
    1238 {
    1239   Info FunctionInfo(__func__);
    1240   PointMap::const_iterator Runner = PointsOnBoundary.end();
    1241   Runner--;
    1242   return (Runner->second->node);
    1243 }
    1244 ;
    1245 
    12461234/** PointCloud implementation of GoToNext.
    12471235 * Uses PointsOnBoundary and STL stuff.
     
    12551243;
    12561244
    1257 /** PointCloud implementation of GoToPrevious.
    1258  * Uses PointsOnBoundary and STL stuff.
    1259  */
    1260 void Tesselation::GoToPrevious() const
    1261 {
    1262   Info FunctionInfo(__func__);
    1263   if (InternalPointer != PointsOnBoundary.begin())
    1264     InternalPointer--;
    1265 }
    1266 ;
    1267 
    12681245/** PointCloud implementation of GoToFirst.
    12691246 * Uses PointsOnBoundary and STL stuff.
     
    12731250  Info FunctionInfo(__func__);
    12741251  InternalPointer = PointsOnBoundary.begin();
    1275 }
    1276 ;
    1277 
    1278 /** PointCloud implementation of GoToLast.
    1279  * Uses PointsOnBoundary and STL stuff.
    1280  */
    1281 void Tesselation::GoToLast() const
    1282 {
    1283   Info FunctionInfo(__func__);
    1284   InternalPointer = PointsOnBoundary.end();
    1285   InternalPointer--;
    12861252}
    12871253;
     
    25932559  // fill the set of neighbours
    25942560  TesselPointSet SetOfNeighbours;
     2561
    25952562  SetOfNeighbours.insert(CandidateLine.BaseLine->endpoints[1]->node);
    25962563  for (TesselPointList::iterator Runner = CandidateLine.pointlist.begin(); Runner != CandidateLine.pointlist.end(); Runner++)
Note: See TracChangeset for help on using the changeset viewer.