Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/AnalysisPairCorrelationUnitTest.cpp

    r23b547 re6fdbe  
    1717#include "AnalysisPairCorrelationUnitTest.hpp"
    1818
    19 #include "World.hpp"
    2019#include "atom.hpp"
    2120#include "boundary.hpp"
     
    5655
    5756  // construct periodentafel
    58   tafel = World::getInstance().getPeriode();
     57  tafel = new periodentafel;
    5958  tafel->AddElement(hydrogen);
    6059
    6160  // construct molecule (tetraeder of hydrogens)
    62   TestMolecule = World::getInstance().createMolecule();
    63   Walker = World::getInstance().createAtom();
     61  TestMolecule = new molecule(tafel);
     62  Walker = new atom();
    6463  Walker->type = hydrogen;
    6564  Walker->node->Init(1., 0., 1. );
    6665  TestMolecule->AddAtom(Walker);
    67   Walker = World::getInstance().createAtom();
     66  Walker = new atom();
    6867  Walker->type = hydrogen;
    6968  Walker->node->Init(0., 1., 1. );
    7069  TestMolecule->AddAtom(Walker);
    71   Walker = World::getInstance().createAtom();
     70  Walker = new atom();
    7271  Walker->type = hydrogen;
    7372  Walker->node->Init(1., 1., 0. );
    7473  TestMolecule->AddAtom(Walker);
    75   Walker = World::getInstance().createAtom();
     74  Walker = new atom();
    7675  Walker->type = hydrogen;
    7776  Walker->node->Init(0., 0., 0. );
     
    8180  CPPUNIT_ASSERT_EQUAL( TestMolecule->AtomCount, 4 );
    8281
    83   TestList = World::getInstance().getMolecules();
     82  TestList = new MoleculeListClass;
    8483  TestMolecule->ActiveFlag = true;
    8584  TestList->insert(TestMolecule);
     
    9998    delete(binmap);
    10099
     100  // remove
     101  delete(TestList);
    101102  // note that all the atoms are cleaned by TestMolecule
    102   World::purgeInstance();
     103  delete(tafel);
     104  // note that element is cleaned by periodentafel
     105  World::destroy();
    103106  MemoryUsageObserver::purgeInstance();
    104107  logger::purgeInstance();
Note: See TracChangeset for help on using the changeset viewer.