Changeset 8d2772


Ignore:
Timestamp:
Mar 18, 2010, 4:45:41 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:
80c63d
Parents:
24725c
Message:

Changed conditional criticalExit in constructor of BoundaryTriangleSet to Assertion.

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/Helpers/Assert.cpp

    r24725c r8d2772  
    2121{
    2222  if(!res){
    23     cout << "Assertion " << condition << " failed in file " << filename << " at line " << line << endl;
     23    cout << "Assertion \"" << condition << "\" failed in file " << filename << " at line " << line << endl;
    2424    cout << "Assertion Message: " << message << std::endl;
    2525    if(always_throw){
  • src/molecule.cpp

    r24725c r8d2772  
    938938void molecule::CountAtoms()
    939939{
    940   cout << "!!!!!!!!!!! Assigning Numbers to atoms " << endl;
    941940  int i = size();
    942941  if ((AtomCount == 0) || (i != AtomCount)) {
     
    961960    } else
    962961      Log() << Verbose(3) << "AtomCount is still " << AtomCount << ", thus counting nothing." << endl;
    963   }
    964   else {
    965     cout << "!!!!!!!!! Nothing changed while counting" << endl;
    966962  }
    967963};
  • src/tesselation.cpp

    r24725c r8d2772  
    1616#include "vector.hpp"
    1717#include "verbose.hpp"
     18
     19#include "Helpers/Assert.hpp"
    1820
    1921class molecule;
     
    366368    Counter++;
    367369  }
    368   if (Counter < 3) {
    369     eLog() << Verbose(0) << "We have a triangle with only two distinct endpoints!" << endl;
    370     performCriticalExit();
    371   }
     370  ASSERT(Counter >= 3,"We have a triangle with only two distinct endpoints!");
    372371};
    373372
     
    21002099    }
    21012100
     2101
    21022102    BTS = NULL;
    21032103    AddCandidateTriangle(OptCandidates);
     2104
    21042105//    delete(BaseLine.endpoints[0]);
    21052106//    delete(BaseLine.endpoints[1]);
     
    24312432  // fill the set of neighbours
    24322433  TesselPointSet SetOfNeighbours;
     2434
    24332435  SetOfNeighbours.insert(CandidateLine.BaseLine->endpoints[1]->node);
    24342436  for (TesselPointList::iterator Runner = CandidateLine.pointlist.begin(); Runner != CandidateLine.pointlist.end(); Runner++)
     
    24552457
    24562458    // add the triangles
    2457     BTS = new class BoundaryTriangleSet(BLS, TrianglesOnBoundaryCount);
     2459    BTS = new BoundaryTriangleSet(BLS, TrianglesOnBoundaryCount);
    24582460    AddTesselationTriangle();
    24592461    BTS->GetCenter(&Center);
  • src/unittests/AnalysisCorrelationToSurfaceUnitTest.cpp

    r24725c r8d2772  
    2626#include "tesselation.hpp"
    2727#include "World.hpp"
     28#include "Helpers/Assert.hpp"
    2829
    2930#ifdef HAVE_TESTRUNNER
     
    3839void AnalysisCorrelationToSurfaceUnitTest::setUp()
    3940{
     41  ASSERT_DO_THROW;
     42
    4043  atom *Walker = NULL;
    4144
Note: See TracChangeset for help on using the changeset viewer.