Ignore:
Timestamp:
Apr 27, 2010, 2:25:42 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
90c4460
Parents:
1561e2 (diff), 2bc713 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'Analysis_PairCorrelation' into StructureRefactoring

Conflicts:

molecuilder/src/Makefile.am
molecuilder/src/World.cpp
molecuilder/src/World.hpp
molecuilder/src/boundary.cpp
molecuilder/src/builder.cpp
molecuilder/src/log.cpp
molecuilder/src/moleculelist.cpp
molecuilder/src/periodentafel.cpp
molecuilder/src/tesselation.cpp
molecuilder/src/unittests/AnalysisCorrelationToSurfaceUnitTest.cpp
molecuilder/src/unittests/Makefile.am
molecuilder/src/unittests/bondgraphunittest.cpp
molecuilder/src/unittests/gslvectorunittest.cpp
molecuilder/src/unittests/logunittest.cpp
molecuilder/src/unittests/tesselation_boundarytriangleunittest.hpp
molecuilder/src/vector.cpp
molecuilder/tests/Tesselations/defs.in

Conflicts have been many and too numerous to listen here, just the few general cases

  • new molecule() replaced by World::getInstance().createMolecule()
  • new atom() replaced by World::getInstance().createAtom() where appropriate.
  • Some DoLog()s added interfered with changes to the message produced by Log() << Verbose(.) << ...
  • DoLog() has been erroneously added to TestRunner.cpp as well, there cout is appropriate
  • ...

Additionally, there was a bug in atom::clone(), sort was set to atom::nr of the atom to clone not of the clone itself. This caused a failure of the fragmentation.

This merge has been fully checked from a clean build directory with subsequent configure,make all install and make check.
It configures, compiles and runs all test cases and the test suite without errors.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/unittests/gslvectorunittest.cpp

    r1561e2 r075729  
    117117    CPPUNIT_ASSERT_EQUAL( (double)(3-j), v->Get(j) );
    118118};
     119
     120/** UnitTest for operators.
     121 */
     122void GSLVectorTest::OperatorIsTest()
     123{
     124  GSLVector zero(3);
     125  GSLVector unit(3);
     126  zero.SetZero();
     127  unit.SetZero();
     128  unit.Set(1,1.);
     129  // summation and scaling
     130  CPPUNIT_ASSERT_EQUAL( true, unit.IsOne() );
     131  CPPUNIT_ASSERT_EQUAL( false, zero.IsOne() );
     132  CPPUNIT_ASSERT_EQUAL( false, unit.IsZero() );
     133  CPPUNIT_ASSERT_EQUAL( true, zero.IsZero() );
     134};
     135
     136/** UnitTest for operators.
     137 */
     138void GSLVectorTest::OperatorAlgebraTest()
     139{
     140  GSLVector zero(3);
     141  GSLVector unit(3);
     142  zero.SetZero();
     143  unit.SetZero();
     144  unit.Set(1,1.);
     145  // summation and scaling
     146  CPPUNIT_ASSERT_EQUAL( true, (zero+unit).IsOne() );
     147  CPPUNIT_ASSERT_EQUAL( true, (zero+unit).IsOne() );
     148  CPPUNIT_ASSERT_EQUAL( true, (zero-unit).IsOne() );
     149  CPPUNIT_ASSERT_EQUAL( false, (zero-unit).IsZero() );
     150  CPPUNIT_ASSERT_EQUAL( true, (zero+zero).IsZero() );
     151  CPPUNIT_ASSERT_EQUAL( false, (unit*0.98).IsOne() );
     152  CPPUNIT_ASSERT_EQUAL( false, (0.98*unit).IsOne() );
     153  CPPUNIT_ASSERT_EQUAL( true, (unit*1.).IsOne() );
     154  CPPUNIT_ASSERT_EQUAL( true, (1.*unit).IsOne() );
     155
     156  CPPUNIT_ASSERT_EQUAL( unit, (zero+unit) );
     157  CPPUNIT_ASSERT_EQUAL( zero, (zero+zero) );
     158  CPPUNIT_ASSERT_EQUAL( unit, (unit+zero) );
     159
     160  unit += zero;
     161  CPPUNIT_ASSERT_EQUAL( true, unit.IsOne() );
     162  unit *= 1.;
     163  CPPUNIT_ASSERT_EQUAL( true, unit.IsOne() );
     164};
Note: See TracChangeset for help on using the changeset viewer.