Ignore:
Timestamp:
Jul 31, 2010, 3:23:10 PM (14 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:
8f4df1
Parents:
5fbaeb
Message:

Member variable Vector and element of class atom are now private.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/tesselation_insideoutsideunittest.cpp

    r5fbaeb rd74077  
    1313
    1414#include <cstring>
     15#include <iostream>
    1516
    1617#include "defs.hpp"
    17 #include "tesselation.hpp"
     18#include "TesselPoint.hpp"
     19#include "BoundaryLineSet.hpp"
     20#include "BoundaryTriangleSet.hpp"
     21#include "CandidateForTesselation.hpp"
    1822#include "tesselation_insideoutsideunittest.hpp"
    1923#include "verbose.hpp"
     
    3034CPPUNIT_TEST_SUITE_REGISTRATION( TesselationInOutsideTest );
    3135
    32 
    3336void TesselationInOutsideTest::setUp()
    3437{
     
    3841  class TesselPoint *Walker;
    3942  Walker = new TesselPoint;
    40   Walker->node = new Vector(0., 0., 0.);
     43  Walker->setPosition(Vector(0., 0., 0.));
    4144  Walker->setName("1");
    4245  Walker->nr = 1;
    4346  Corners.push_back(Walker);
    4447  Walker = new TesselPoint;
    45   Walker->node = new Vector(0., 1., 0.);
     48  Walker->setPosition(Vector(0., 1., 0.));
    4649  Walker->setName("2");
    4750  Walker->nr = 2;
    4851  Corners.push_back(Walker);
    4952  Walker = new TesselPoint;
    50   Walker->node = new Vector(1., 0., 0.);
     53  Walker->setPosition(Vector(1., 0., 0.));
    5154  Walker->setName("3");
    5255  Walker->nr = 3;
    5356  Corners.push_back(Walker);
    5457  Walker = new TesselPoint;
    55   Walker->node = new Vector(1., 1., 0.);
     58  Walker->setPosition(Vector(1., 1., 0.));
    5659  Walker->setName("4");
    5760  Walker->nr = 4;
    5861  Corners.push_back(Walker);
    5962  Walker = new TesselPoint;
    60   Walker->node = new Vector(0., 0., 1.);
     63  Walker->setPosition(Vector(0., 0., 1.));
    6164  Walker->setName("5");
    6265  Walker->nr = 5;
    6366  Corners.push_back(Walker);
    6467  Walker = new TesselPoint;
    65   Walker->node = new Vector(0., 1., 1.);
     68  Walker->setPosition(Vector(0., 1., 1.));
    6669  Walker->setName("6");
    6770  Walker->nr = 6;
    6871  Corners.push_back(Walker);
    6972  Walker = new TesselPoint;
    70   Walker->node = new Vector(1., 0., 1.);
     73  Walker->setPosition(Vector(1., 0., 1.));
    7174  Walker->setName("7");
    7275  Walker->nr = 7;
    7376  Corners.push_back(Walker);
    7477  Walker = new TesselPoint;
    75   Walker->node = new Vector(1., 1., 1.);
     78  Walker->setPosition(Vector(1., 1., 1.));
    7679  Walker->setName("8");
    7780  Walker->nr = 8;
     
    130133  delete(LinkedList);
    131134  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++)
    134136    delete(*Runner);
    135   }
    136137  Corners.clear();
    137138  logger::purgeInstance();
Note: See TracChangeset for help on using the changeset viewer.