Changeset 91f592 for src


Ignore:
Timestamp:
Dec 28, 2011, 3:30:06 PM (13 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:
6f0841
Parents:
aa6c75
git-author:
Frederik Heber <heber@…> (11/15/11 14:15:25)
git-committer:
Frederik Heber <heber@…> (12/28/11 15:30:06)
Message:

Added own convenience library for LinkedCell construct.

Location:
src
Files:
2 added
3 edited
2 moved

Legend:

Unmodified
Added
Removed
  • src/LinkedCell/unittests/linkedcellUnitTest.cpp

    raa6c75 r91f592  
    3838#include "World.hpp"
    3939
    40 #include "LinkedCellUnitTest.hpp"
     40#include "linkedcellUnitTest.hpp"
    4141
    4242#ifdef HAVE_TESTRUNNER
     
    4747
    4848// Registers the fixture into the 'registry'
    49 CPPUNIT_TEST_SUITE_REGISTRATION( LinkedCellTest );
    50 
    51 
    52 void LinkedCellTest::setUp()
     49CPPUNIT_TEST_SUITE_REGISTRATION( linkedcelltest );
     50
     51
     52void linkedcelltest::setUp()
    5353{
    5454  // failing asserts should be thrown
     
    8484
    8585
    86 void LinkedCellTest::tearDown()
     86void linkedcelltest::tearDown()
    8787{
    8888  delete(LC);
     
    9393/** UnitTest for LinkedCell::CheckBounds().
    9494 */
    95 void LinkedCellTest::CheckBoundsTest()
     95void linkedcelltest::CheckBoundsTest()
    9696{
    9797  // check for within bounds
     
    124124 * Note that CheckBounds() is used and has to be tested already.
    125125 */
    126 void LinkedCellTest::GetCurrentCellTest()
     126void linkedcelltest::GetCurrentCellTest()
    127127{
    128128  // within bounds
     
    145145/** UnitTest for LinkedCell::GetRelativeToCurrentCell().
    146146 */
    147 void LinkedCellTest::GetRelativeToCurrentCellTest()
     147void linkedcelltest::GetRelativeToCurrentCellTest()
    148148{
    149149  int offset[3];
     
    202202/** UnitTest for LinkedCell::SetIndexToNode().
    203203 */
    204 void LinkedCellTest::SetIndexToNodeTest()
     204void linkedcelltest::SetIndexToNodeTest()
    205205{
    206206  // check all atoms
     
    227227/** UnitTest for LinkedCell::SetIndexToVector().
    228228 */
    229 void LinkedCellTest::SetIndexToVectorTest()
     229void linkedcelltest::SetIndexToVectorTest()
    230230{
    231231  Vector tester;
     
    263263/** UnitTest for LinkedCell::GetNeighbourBounds().
    264264 */
    265 void LinkedCellTest::GetNeighbourBoundsTest()
     265void linkedcelltest::GetNeighbourBoundsTest()
    266266{
    267267  Vector tester;
     
    280280/** UnitTest for LinkedCell::GetallNeighbours().
    281281 */
    282 void LinkedCellTest::GetallNeighboursTest()
     282void linkedcelltest::GetallNeighboursTest()
    283283{
    284284  Vector tester;
     
    341341/** UnitTest for LinkedCell::GetPointsInsideSphere().
    342342 */
    343 void LinkedCellTest::GetPointsInsideSphereTest()
     343void linkedcelltest::GetPointsInsideSphereTest()
    344344{
    345345  Vector tester;
  • src/LinkedCell/unittests/linkedcellUnitTest.hpp

    raa6c75 r91f592  
    2525/********************************************** Test classes **************************************/
    2626
    27 class LinkedCellTest : public CppUnit::TestFixture
     27class linkedcelltest : public CppUnit::TestFixture
    2828{
    29     CPPUNIT_TEST_SUITE( LinkedCellTest) ;
     29    CPPUNIT_TEST_SUITE( linkedcelltest) ;
    3030    CPPUNIT_TEST ( CheckBoundsTest );
    3131    CPPUNIT_TEST ( GetCurrentCellTest );
  • src/Makefile.am

    raa6c75 r91f592  
    1515include Graph/Makefile.am
    1616include Helpers/Makefile.am
     17include LinkedCell/Makefile.am
    1718include Parser/Makefile.am
    1819include RandomNumbers/Makefile.am
     
    115116        Dynamics/VerletForceIntegration.hpp
    116117
    117 LINKEDCELLSOURCE = \
    118   LinkedCell/linkedcell.cpp
    119 
    120 LINKEDCELLHEADER = \
    121   LinkedCell/linkedcell.hpp \
    122   LinkedCell/IPointCloud.hpp \
    123   LinkedCell/PointCloudAdaptor.hpp
    124 
    125118THERMOSTATSOURCE = \
    126119  Thermostats/Berendsen.cpp \
     
    175168  ${DESCRIPTORSOURCE} \
    176169  ${DYNAMICSSOURCE} \
    177   ${LINKEDCELLSOURCE} \
    178170  ${THERMOSTATSOURCE} \
    179171  ${TESSELATIONSOURCE} \
     
    197189  ${DESCRIPTORIMPLHEADER} \
    198190  ${DYNAMICSHEADER} \
    199   ${LINKEDCELLHEADER} \
    200191  ${THERMOSTATHEADER} \
    201192  ${TESSELATIONHEADER} \
  • src/UIElements/Makefile.am

    raa6c75 r91f592  
    267267        libMolecuilderParser.la \
    268268        libMolecuilderShapes.la \
     269        libMolecuilderLinkedCell.la \
    269270        libMolecuilderHelpers.la \
    270271        libMolecuilderElement.la \
  • src/unittests/Makefile.am

    raa6c75 r91f592  
    1212include ../../src/Fragmentation/unittests/Makefile.am
    1313include ../../src/Graph/unittests/Makefile.am
     14include ../../src/LinkedCell/unittests/Makefile.am
    1415include ../../src/Parser/unittests/Makefile.am
    1516include ../../src/RandomNumbers/unittests/Makefile.am
     
    2728  BoxUnitTest \
    2829  FormulaUnittest \
    29   LinkedCellUnitTest \
    3030  ListOfBondsUnitTest \
    3131  WorldTimeUnitTest
     
    6464        ${FRAGMENTATIONTESTSSOURCES} \
    6565        ${GRAPHTESTSSOURCES} \
     66        ${LINKEDCELLSOURCES} \
    6667        ${LINEARALGEBRATESTSSOURCES} \
    6768        ${PARSERTESTSSOURCES} \
     
    7374  BoxUnitTest.cpp \
    7475  FormulaUnitTest.cpp \
    75   LinkedCellUnitTest.cpp \
    7676  ListOfBondsUnitTest.cpp \
    7777  WorldTimeUnitTest.cpp
     
    8484        ${FRAGMENTATIONTESTSHEADERS} \
    8585        ${GRAPHTESTSHEADERS} \
     86        ${LINKEDCELLHEADERS} \
    8687        ${LINEARALGEBRATESTSHEADERS} \
    8788        ${PARSERTESTSHEADERS} \
     
    9394  BoxUnitTest.hpp \
    9495  FormulaUnitTest.hpp \
    95   LinkedCellUnitTest.hpp \
    9696  ListOfBondsUnitTest.hpp \
    9797  WorldTimeUnitTest.hpp
     
    112112FormulaUnittest_LDADD = $(ALLLIBS)
    113113
    114 LinkedCellUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
    115         LinkedCellUnitTest.cpp \
    116         LinkedCellUnitTest.hpp
    117 LinkedCellUnitTest_LDADD = $(ALLLIBS)
    118 
    119114ListOfBondsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
    120115        ListOfBondsUnitTest.cpp \
Note: See TracChangeset for help on using the changeset viewer.