Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/AnalysisPairCorrelationUnitTest.cpp

    r920c70 r1bd79e  
    4444  TestList = NULL;
    4545  TestMolecule = NULL;
     46  hydrogen = NULL;
     47  tafel = NULL;
    4648  correlationmap = NULL;
    4749  binmap = NULL;
    4850
     51  // construct element
     52  hydrogen = new element;
     53  hydrogen->Z = 1;
     54  strcpy(hydrogen->name, "hydrogen");
     55  strcpy(hydrogen->symbol, "H");
     56
     57  // construct periodentafel
     58  tafel = World::getInstance().getPeriode();
     59  tafel->AddElement(hydrogen);
     60
    4961  // construct molecule (tetraeder of hydrogens)
    50   hydrogen = World::getInstance().getPeriode()->FindElement(1);
    5162  TestMolecule = World::getInstance().createMolecule();
    5263  Walker = World::getInstance().createAtom();
     
    90101  // note that all the atoms are cleaned by TestMolecule
    91102  World::purgeInstance();
     103  MemoryUsageObserver::purgeInstance();
    92104  logger::purgeInstance();
    93105  errorLogger::purgeInstance();
Note: See TracChangeset for help on using the changeset viewer.