Changeset 7a0340


Ignore:
Timestamp:
Oct 6, 2011, 7:17:46 AM (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:
cec7a5
Parents:
e420f9
git-author:
Frederik Heber <heber@…> (04/23/11 19:41:36)
git-committer:
Frederik Heber <heber@…> (10/06/11 07:17:46)
Message:

Renamed MatrixUnitTest to more appropriate RealSpaceMatrixUnitTest.

Location:
LinearAlgebra/src/unittests
Files:
1 edited
2 moved

Legend:

Unmodified
Added
Removed
  • LinearAlgebra/src/unittests/Makefile.am

    re420f9 r7a0340  
    1212  MatrixContentSymmetricUnitTest \
    1313  MatrixContentUnitTest \
    14   MatrixUnitTest \
    1514  PlaneUnitTest \
     15  RealSpaceMatrixUnitTest \
    1616  VectorContentUnitTest \
    1717  VectorUnitTest
     
    3131        MatrixContentSymmetricUnitTest.cpp \
    3232        MatrixContentUnitTest.cpp \
    33         MatrixUnitTest.cpp \
    3433        PlaneUnitTest.cpp \
     34        RealSpaceMatrixUnitTest.cpp \
    3535        VectorContentUnitTest.cpp \
    3636        VectorUnitTest.cpp
     
    4141        MatrixContentSymmetricUnitTest.hpp \
    4242        MatrixContentUnitTest.hpp \
    43         MatrixUnitTest.hpp \
    4443        PlaneUnitTest.hpp \
     44        RealSpaceMatrixUnitTest.hpp \
    4545        VectorContentUnitTest.hpp \
    4646        VectorUnitTest.hpp
     
    6666MatrixContentUnitTest_LDADD = ${GSLLIBS}
    6767
    68 MatrixUnitTest_SOURCES = UnitTestMain.cpp \
    69         MatrixUnitTest.cpp \
    70         MatrixUnitTest.hpp
    71 MatrixUnitTest_LDADD = ${GSLLIBS}
    72 
    7368PlaneUnitTest_SOURCES = UnitTestMain.cpp \
    7469        PlaneUnitTest.cpp \
    7570        PlaneUnitTest.hpp
    7671PlaneUnitTest_LDADD = ${GSLLIBS}
     72
     73RealSpaceMatrixUnitTest_SOURCES = UnitTestMain.cpp \
     74        RealSpaceMatrixUnitTest.cpp \
     75        RealSpaceMatrixUnitTest.hpp
     76RealSpaceMatrixUnitTest_LDADD = ${GSLLIBS}
    7777
    7878VectorContentUnitTest_SOURCES = UnitTestMain.cpp \
  • LinearAlgebra/src/unittests/RealSpaceMatrixUnitTest.cpp

    re420f9 r7a0340  
    77
    88/*
    9  * MatrixUnitTest.cpp
     9 * RealSpaceMatrixUnitTest.cpp
    1010 *
    1111 *  Created on: Jul 7, 2010
     
    2525#include <limits>
    2626
    27 #include "MatrixUnitTest.hpp"
     27#include "RealSpaceMatrixUnitTest.hpp"
    2828
    2929#include "defs.hpp"
     
    3737
    3838// Registers the fixture into the 'registry'
    39 CPPUNIT_TEST_SUITE_REGISTRATION( MatrixUnittest );
    40 
    41 void MatrixUnittest::setUp(){
     39CPPUNIT_TEST_SUITE_REGISTRATION( RealSpaceMatrixTest );
     40
     41void RealSpaceMatrixTest::setUp(){
    4242  zero = new RealSpaceMatrix();
    4343  for(int i =NDIM;i--;) {
     
    8787
    8888}
    89 void MatrixUnittest::tearDown(){
     89void RealSpaceMatrixTest::tearDown(){
    9090  delete zero;
    9191  delete one;
     
    9999}
    100100
    101 void MatrixUnittest::AccessTest(){
     101void RealSpaceMatrixTest::AccessTest(){
    102102  RealSpaceMatrix mat;
    103103  for(int i=NDIM;i--;){
     
    121121}
    122122
    123 void MatrixUnittest::VectorTest(){
     123void RealSpaceMatrixTest::VectorTest(){
    124124  RealSpaceMatrix mat;
    125125  for(int i=NDIM;i--;){
     
    175175}
    176176
    177 void MatrixUnittest::TransposeTest(){
     177void RealSpaceMatrixTest::TransposeTest(){
    178178  RealSpaceMatrix res;
    179179
     
    189189}
    190190
    191 void MatrixUnittest::OperationTest(){
     191void RealSpaceMatrixTest::OperationTest(){
    192192  RealSpaceMatrix res;
    193193
     
    262262}
    263263
    264 void MatrixUnittest::RotationTest(){
     264void RealSpaceMatrixTest::RotationTest(){
    265265  RealSpaceMatrix res;
    266266  RealSpaceMatrix inverse;
     
    284284}
    285285
    286 void MatrixUnittest::InvertTest(){
     286void RealSpaceMatrixTest::InvertTest(){
    287287  CPPUNIT_ASSERT_THROW(zero->invert(),NotInvertibleException);
    288288  CPPUNIT_ASSERT_THROW(full->invert(),NotInvertibleException);
     
    306306
    307307
    308 void MatrixUnittest::DeterminantTest(){
     308void RealSpaceMatrixTest::DeterminantTest(){
    309309  CPPUNIT_ASSERT_EQUAL(zero->determinant(),0.);
    310310  CPPUNIT_ASSERT_EQUAL(one->determinant(),1.);
     
    318318}
    319319
    320 void MatrixUnittest::VecMultTest(){
     320void RealSpaceMatrixTest::VecMultTest(){
    321321  CPPUNIT_ASSERT_EQUAL((*zero)*unitVec[0],zeroVec);
    322322  CPPUNIT_ASSERT_EQUAL((*zero)*unitVec[1],zeroVec);
  • LinearAlgebra/src/unittests/RealSpaceMatrixUnitTest.hpp

    re420f9 r7a0340  
    11/*
    2  * MatrixUnitTest.hpp
     2 * RealSpaceMatrixUnitTest.hpp
    33 *
    44 *  Created on: Jul 7, 2010
     
    66 */
    77
    8 #ifndef MATRIXUNITTEST_HPP_
    9 #define MATRIXUNITTEST_HPP_
     8#ifndef REALSPACEMATRIXUNITTEST_HPP_
     9#define REALSPACEMATRIXUNITTEST_HPP_
    1010
    1111// include config.h
     
    1919class RealSpaceMatrix;
    2020
    21 class MatrixUnittest : public CppUnit::TestFixture
     21class RealSpaceMatrixTest : public CppUnit::TestFixture
    2222{
    23   CPPUNIT_TEST_SUITE( MatrixUnittest) ;
     23  CPPUNIT_TEST_SUITE( RealSpaceMatrixTest) ;
    2424  CPPUNIT_TEST ( AccessTest );
    2525  CPPUNIT_TEST ( VectorTest );
     
    5656};
    5757
    58 #endif /* MATRIXUNITTEST_HPP_ */
     58#endif /* REALSPACEMATRIXUNITTEST_HPP_ */
Note: See TracChangeset for help on using the changeset viewer.