Changeset d74077 for src/unittests/tesselation_insideoutsideunittest.cpp
- Timestamp:
- Jul 31, 2010, 3:23:10 PM (14 years ago)
- 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:
- 8f4df1
- Parents:
- 5fbaeb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/unittests/tesselation_insideoutsideunittest.cpp
r5fbaeb rd74077 13 13 14 14 #include <cstring> 15 #include <iostream> 15 16 16 17 #include "defs.hpp" 17 #include "tesselation.hpp" 18 #include "TesselPoint.hpp" 19 #include "BoundaryLineSet.hpp" 20 #include "BoundaryTriangleSet.hpp" 21 #include "CandidateForTesselation.hpp" 18 22 #include "tesselation_insideoutsideunittest.hpp" 19 23 #include "verbose.hpp" … … 30 34 CPPUNIT_TEST_SUITE_REGISTRATION( TesselationInOutsideTest ); 31 35 32 33 36 void TesselationInOutsideTest::setUp() 34 37 { … … 38 41 class TesselPoint *Walker; 39 42 Walker = new TesselPoint; 40 Walker-> node = new Vector(0., 0., 0.);43 Walker->setPosition(Vector(0., 0., 0.)); 41 44 Walker->setName("1"); 42 45 Walker->nr = 1; 43 46 Corners.push_back(Walker); 44 47 Walker = new TesselPoint; 45 Walker-> node = new Vector(0., 1., 0.);48 Walker->setPosition(Vector(0., 1., 0.)); 46 49 Walker->setName("2"); 47 50 Walker->nr = 2; 48 51 Corners.push_back(Walker); 49 52 Walker = new TesselPoint; 50 Walker-> node = new Vector(1., 0., 0.);53 Walker->setPosition(Vector(1., 0., 0.)); 51 54 Walker->setName("3"); 52 55 Walker->nr = 3; 53 56 Corners.push_back(Walker); 54 57 Walker = new TesselPoint; 55 Walker-> node = new Vector(1., 1., 0.);58 Walker->setPosition(Vector(1., 1., 0.)); 56 59 Walker->setName("4"); 57 60 Walker->nr = 4; 58 61 Corners.push_back(Walker); 59 62 Walker = new TesselPoint; 60 Walker-> node = new Vector(0., 0., 1.);63 Walker->setPosition(Vector(0., 0., 1.)); 61 64 Walker->setName("5"); 62 65 Walker->nr = 5; 63 66 Corners.push_back(Walker); 64 67 Walker = new TesselPoint; 65 Walker-> node = new Vector(0., 1., 1.);68 Walker->setPosition(Vector(0., 1., 1.)); 66 69 Walker->setName("6"); 67 70 Walker->nr = 6; 68 71 Corners.push_back(Walker); 69 72 Walker = new TesselPoint; 70 Walker-> node = new Vector(1., 0., 1.);73 Walker->setPosition(Vector(1., 0., 1.)); 71 74 Walker->setName("7"); 72 75 Walker->nr = 7; 73 76 Corners.push_back(Walker); 74 77 Walker = new TesselPoint; 75 Walker-> node = new Vector(1., 1., 1.);78 Walker->setPosition(Vector(1., 1., 1.)); 76 79 Walker->setName("8"); 77 80 Walker->nr = 8; … … 130 133 delete(LinkedList); 131 134 delete(TesselStruct); 132 for (LinkedCell::LinkedNodes::iterator Runner = Corners.begin(); Runner != Corners.end(); Runner++) { 133 delete((*Runner)->node); 135 for (LinkedCell::LinkedNodes::iterator Runner = Corners.begin(); Runner != Corners.end(); Runner++) 134 136 delete(*Runner); 135 }136 137 Corners.clear(); 137 138 logger::purgeInstance();
Note:
See TracChangeset
for help on using the changeset viewer.