Ignore:
Timestamp:
Aug 9, 2013, 2:20:37 PM (12 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:
e2037e
Parents:
1413f4
git-author:
Frederik Heber <heber@…> (07/08/13 07:20:55)
git-committer:
Frederik Heber <heber@…> (08/09/13 14:20:37)
Message:

Renamed PairPotential_Angle -> ThreeBodyPotential_Angle and also UnitTest.

Location:
src/Potentials/Specifics/unittests
Files:
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • src/Potentials/Specifics/unittests/Makefile.am

    r1413f4 r484e2a  
    55        ../Potentials/Specifics/unittests/ConstantPotentialUnitTest.cpp \
    66        ../Potentials/Specifics/unittests/ManyBodyPotential_TersoffUnitTest.cpp \
    7         ../Potentials/Specifics/unittests/PairPotential_AngleUnitTest.cpp \
    87        ../Potentials/Specifics/unittests/PairPotential_HarmonicUnitTest.cpp \
    98        ../Potentials/Specifics/unittests/PairPotential_LennardJonesUnitTest.cpp \
    10         ../Potentials/Specifics/unittests/PairPotential_MorseUnitTest.cpp
     9        ../Potentials/Specifics/unittests/PairPotential_MorseUnitTest.cpp \
     10        ../Potentials/Specifics/unittests/ThreeBodyPotential_AngleUnitTest.cpp
    1111
    1212POTENTIALSSPECIFICSTESTSHEADERS = \
    1313        ../Potentials/Specifics/unittests/ConstantPotentialUnitTest.hpp \
    1414        ../Potentials/Specifics/unittests/ManyBodyPotential_TersoffUnitTest.hpp \
    15         ../Potentials/Specifics/unittests/PairPotential_AngleUnitTest.hpp \
    1615        ../Potentials/Specifics/unittests/PairPotential_HarmonicUnitTest.hpp \
    1716        ../Potentials/Specifics/unittests/PairPotential_LennardJonesUnitTest.hpp \
    18         ../Potentials/Specifics/unittests/PairPotential_MorseUnitTest.hpp
     17        ../Potentials/Specifics/unittests/PairPotential_MorseUnitTest.hpp \
     18        ../Potentials/Specifics/unittests/ThreeBodyPotential_AngleUnitTest.hpp
    1919
    2020POTENTIALSSPECIFICSTESTS = \
    2121        ConstantPotentialUnitTest \
    2222        ManyBodyPotential_TersoffUnitTest \
    23         PairPotential_AngleUnitTest \
    2423        PairPotential_HarmonicUnitTest \
    2524        PairPotential_LennardJonesUnitTest \
    26         PairPotential_MorseUnitTest
     25        PairPotential_MorseUnitTest \
     26        ThreeBodyPotential_AngleUnitTest
    2727
    2828TESTS += $(POTENTIALSSPECIFICSTESTS)
     
    5050ManyBodyPotential_TersoffUnitTest_LDADD = ${POTENTIALSSPECIFICSLIBS}
    5151
    52 PairPotential_AngleUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
    53         ../Potentials/Specifics/unittests/PairPotential_AngleUnitTest.cpp \
    54         ../Potentials/Specifics/unittests/PairPotential_AngleUnitTest.hpp
    55 PairPotential_AngleUnitTest_LDADD = ${POTENTIALSSPECIFICSLIBS}
    56 
    5752PairPotential_HarmonicUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
    5853        ../Potentials/Specifics/unittests/PairPotential_HarmonicUnitTest.cpp \
     
    7065PairPotential_MorseUnitTest_LDADD = ${POTENTIALSSPECIFICSLIBS}
    7166
     67ThreeBodyPotential_AngleUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     68        ../Potentials/Specifics/unittests/ThreeBodyPotential_AngleUnitTest.cpp \
     69        ../Potentials/Specifics/unittests/ThreeBodyPotential_AngleUnitTest.hpp
     70ThreeBodyPotential_AngleUnitTest_LDADD = ${POTENTIALSSPECIFICSLIBS}
     71
    7272
    7373#AUTOMAKE_OPTIONS = parallel-tests
  • src/Potentials/Specifics/unittests/ThreeBodyPotential_AngleUnitTest.cpp

    r1413f4 r484e2a  
    2323
    2424/*
    25  * PairPotential_AngleUnitTest.cpp
     25 * ThreeBodyPotential_AngleUnitTest.cpp
    2626 *
    2727 *  Created on: Oct 16, 2012
     
    4040#include <cppunit/ui/text/TestRunner.h>
    4141
    42 #include "PairPotential_AngleUnitTest.hpp"
     42#include "ThreeBodyPotential_AngleUnitTest.hpp"
    4343
    4444#include <boost/assign.hpp>
     
    4747
    4848#include "FunctionApproximation/FunctionArgument.hpp"
    49 #include "Potentials/Specifics/PairPotential_Angle.hpp"
     49#include "Potentials/Specifics/ThreeBodyPotential_Angle.hpp"
    5050#include "Potentials/helpers.hpp"
    5151
     
    5959
    6060// Registers the fixture into the 'registry'
    61 CPPUNIT_TEST_SUITE_REGISTRATION( PairPotential_AngleTest );
     61CPPUNIT_TEST_SUITE_REGISTRATION( ThreeBodyPotential_AngleTest );
    6262
    6363const double spring_constant = .5;
    6464
    65 void PairPotential_AngleTest::setUp()
     65void ThreeBodyPotential_AngleTest::setUp()
    6666{
    6767  // failing asserts should be thrown
     
    9797
    9898
    99 void PairPotential_AngleTest::tearDown()
     99void ThreeBodyPotential_AngleTest::tearDown()
    100100{
    101101}
     
    103103/** UnitTest for operator()
    104104 */
    105 void PairPotential_AngleTest::operatorTest()
     105void ThreeBodyPotential_AngleTest::operatorTest()
    106106{
    107   PairPotential_Angle::ParticleTypes_t types =
    108       boost::assign::list_of<PairPotential_Angle::ParticleType_t>
     107  ThreeBodyPotential_Angle::ParticleTypes_t types =
     108      boost::assign::list_of<ThreeBodyPotential_Angle::ParticleType_t>
    109109        (0)(1)(1)
    110110      ;
    111   PairPotential_Angle angle(types, spring_constant,0.);
     111  ThreeBodyPotential_Angle angle(types, spring_constant,0.);
    112112  for (size_t index = 0; index < input.size(); ++index) {
    113     const PairPotential_Angle::results_t result =
     113    const ThreeBodyPotential_Angle::results_t result =
    114114        angle( input[index] );
    115115    CPPUNIT_ASSERT(
     
    124124/** UnitTest for derivative()
    125125 */
    126 void PairPotential_AngleTest::derivativeTest()
     126void ThreeBodyPotential_AngleTest::derivativeTest()
    127127{
    128   PairPotential_Angle::ParticleTypes_t types =
    129       boost::assign::list_of<PairPotential_Angle::ParticleType_t>
     128  ThreeBodyPotential_Angle::ParticleTypes_t types =
     129      boost::assign::list_of<ThreeBodyPotential_Angle::ParticleType_t>
    130130        (0)(1)(1)
    131131      ;
    132   PairPotential_Angle angle(types, spring_constant,0.);
     132  ThreeBodyPotential_Angle angle(types, spring_constant,0.);
    133133  CPPUNIT_ASSERT(
    134134      Helpers::isEqual(
     
    145145/** UnitTest for parameter_derivative()
    146146 */
    147 void PairPotential_AngleTest::parameter_derivativeTest()
     147void ThreeBodyPotential_AngleTest::parameter_derivativeTest()
    148148{
    149   PairPotential_Angle::ParticleTypes_t types =
    150       boost::assign::list_of<PairPotential_Angle::ParticleType_t>
     149  ThreeBodyPotential_Angle::ParticleTypes_t types =
     150      boost::assign::list_of<ThreeBodyPotential_Angle::ParticleType_t>
    151151        (0)(1)(1)
    152152      ;
    153   PairPotential_Angle angle(types, spring_constant,0.);
     153  ThreeBodyPotential_Angle angle(types, spring_constant,0.);
    154154  CPPUNIT_ASSERT(
    155155      Helpers::isEqual(
  • src/Potentials/Specifics/unittests/ThreeBodyPotential_AngleUnitTest.hpp

    r1413f4 r484e2a  
    11/*
    2  * PairPotential_AngleUnitTest.hpp
     2 * ThreeBodyPotential_AngleUnitTest.hpp
    33 *
    44 *  Created on: Oct 16, 2012
     
    66 */
    77
    8 #ifndef PAIRPOTENTIAL_ANGLEUNITTEST_HPP_
    9 #define PAIRPOTENTIAL_ANGLEUNITTEST_HPP_
     8#ifndef THREEBODYPOTENTIAL_ANGLEUNITTEST_HPP_
     9#define THREEBODYPOTENTIAL_ANGLEUNITTEST_HPP_
    1010
    1111// include config.h
     
    1919#include "FunctionApproximation/FunctionModel.hpp"
    2020
    21 class PairPotential_Angle;
     21class ThreeBodyPotential_Angle;
    2222
    2323/********************************************** Test classes **************************************/
    2424
    25 class PairPotential_AngleTest : public CppUnit::TestFixture
     25class ThreeBodyPotential_AngleTest : public CppUnit::TestFixture
    2626{
    27     CPPUNIT_TEST_SUITE( PairPotential_AngleTest) ;
     27    CPPUNIT_TEST_SUITE( ThreeBodyPotential_AngleTest) ;
    2828    CPPUNIT_TEST ( operatorTest );
    2929    CPPUNIT_TEST ( derivativeTest );
     
    4444};
    4545
    46 #endif /* PAIRPOTENTIAL_ANGLEUNITTEST_HPP_ */
     46#endif /* THREEBODYPOTENTIAL_ANGLEUNITTEST_HPP_ */
Note: See TracChangeset for help on using the changeset viewer.