Changeset 22b47e


Ignore:
Timestamp:
Jan 8, 2010, 5:44:51 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
e651e7
Parents:
a1acc5
Message:

Wrapper class for gsl_vector along with working Unit test.

  • new class GSLVector wraps all useful functions of the GSL library.
  • new unit test GSLVectorUnitTest tests each part and is working.

Signed-off-by: Frederik Heber <heber@…>

Location:
molecuilder/src
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Makefile.am

    ra1acc5 r22b47e  
    11ATOMSOURCE = atom.cpp atom_atominfo.cpp atom_bondedparticle.cpp atom_bondedparticleinfo.cpp atom_graphnode.cpp atom_graphnodeinfo.cpp atom_particleinfo.cpp atom_trajectoryparticle.cpp atom_trajectoryparticleinfo.cpp
    22ATOMHEADER = atom.hpp atom_atominfo.hpp atom_bondedparticle.hpp atom_bondedparticleinfo.hpp atom_graphnode.hpp atom_graphnodeinfo.hpp atom_particleinfo.hpp atom_trajectoryparticle.hpp atom_trajectoryparticleinfo.hpp
     3
     4LINALGSOURCE = gslvector.cpp
     5LINALGHEADER = gslvector.hpp
    36
    47ANALYSISSOURCE = analysis_bonds.cpp analysis_correlation.cpp
     
    1114INCLUDES = -I$(top_srcdir)/src/unittests
    1215
    13 noinst_LIBRARIES = libmolecuilder.a
     16noinst_LIBRARIES = libmolecuilder.a libgslwrapper.a
    1417bin_PROGRAMS = molecuilder joiner analyzer
    1518molecuilderdir = ${bindir}
    1619libmolecuilder_a_SOURCES = ${SOURCE} ${HEADER}
     20libgslwrapper_a_SOURCES = ${LINALGSOURCE} ${LINALGHEADER}
    1721molecuilder_DATA = elements.db valence.db orbitals.db Hbonddistance.db Hbondangle.db
    1822molecuilder_LDFLAGS = $(BOOST_LIB)
    1923molecuilder_SOURCES = builder.cpp
    20 molecuilder_LDADD = libmolecuilder.a
     24molecuilder_LDADD = libmolecuilder.a libgslwrapper.a
    2125joiner_SOURCES = joiner.cpp datacreator.cpp parser.cpp datacreator.hpp helpers.hpp parser.hpp periodentafel.hpp
    2226joiner_LDADD = libmolecuilder.a
  • molecuilder/src/unittests/Makefile.am

    ra1acc5 r22b47e  
    44AM_CXXFLAGS = $(CPPUNIT_CFLAGS)
    55
    6 TESTS = ActOnAllUnitTest AnalysisBondsUnitTests AnalysisCorrelationToPointUnitTest AnalysisCorrelationToSurfaceUnitTest AnalysisPairCorrelationUnitTest BondGraphUnitTest InfoUnitTest ListOfBondsUnitTest LogUnitTest MemoryUsageObserverUnitTest MemoryAllocatorUnitTest StackClassUnitTest TesselationUnitTest TesselationInOutsideUnitTest VectorUnitTest
     6TESTS = \
     7  ActOnAllUnitTest \
     8  AnalysisBondsUnitTests \
     9  AnalysisCorrelationToPointUnitTest \
     10  AnalysisCorrelationToSurfaceUnitTest \
     11  AnalysisPairCorrelationUnitTest \
     12  BondGraphUnitTest \
     13  GSLVectorUnitTest \
     14  InfoUnitTest \
     15  ListOfBondsUnitTest \
     16  LogUnitTest \
     17  MemoryUsageObserverUnitTest \
     18  MemoryAllocatorUnitTest \
     19  StackClassUnitTest \
     20  TesselationUnitTest \
     21  TesselationInOutsideUnitTest \
     22  VectorUnitTest
     23 
    724check_PROGRAMS = $(TESTS)
    825noinst_PROGRAMS = $(TESTS)
     
    2643BondGraphUnitTest_LDADD = ../libmolecuilder.a
    2744
     45GSLMatrixSymmetricUnitTest_SOURCES = gslmatrixsymmetricunittest.cpp gslmatrixsymmetricunittest.hpp
     46GSLMatrixSymmetricUnitTest_LDADD = ../libgslwrapper.a
     47
     48GSLMatrixUnitTest_SOURCES = gslmatrixunittest.cpp gslmatrixunittest.hpp
     49GSLMatrixUnitTest_LDADD = ../libgslwrapper.a
     50
     51GSLVectorUnitTest_SOURCES = gslvectorunittest.cpp gslvectorunittest.hpp
     52GSLVectorUnitTest_LDADD = ../libgslwrapper.a
     53
    2854InfoUnitTest_SOURCES = infounittest.cpp infounittest.hpp
    2955InfoUnitTest_LDADD = ../libmolecuilder.a
     56
     57LinearSystemOfEquationsUnitTest_SOURCES = linearsystemofequationsunittest.cpp linearsystemofequationsunittest.hpp
     58LinearSystemOfEquationsUnitTest_LDADD = ../libgslwrapper.a ../libmolecuilder.a
    3059
    3160ListOfBondsUnitTest_SOURCES = listofbondsunittest.cpp listofbondsunittest.hpp
Note: See TracChangeset for help on using the changeset viewer.