Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/AnalysisCorrelationToSurfaceUnitTest.cpp

    r49e1ae r46d958  
    1717#include "AnalysisCorrelationToSurfaceUnitTest.hpp"
    1818
     19#include "World.hpp"
    1920#include "atom.hpp"
    2021#include "boundary.hpp"
     
    6162  // construct molecule (tetraeder of hydrogens) base
    6263  TestMolecule = new molecule(tafel);
    63   Walker = new atom();
     64  Walker = World::get()->createAtom();
    6465  Walker->type = hydrogen;
    6566  Walker->node->Init(1., 0., 1. );
    6667  TestMolecule->AddAtom(Walker);
    67   Walker = new atom();
     68  Walker = World::get()->createAtom();
    6869  Walker->type = hydrogen;
    6970  Walker->node->Init(0., 1., 1. );
    7071  TestMolecule->AddAtom(Walker);
    71   Walker = new atom();
     72  Walker = World::get()->createAtom();
    7273  Walker->type = hydrogen;
    7374  Walker->node->Init(1., 1., 0. );
    7475  TestMolecule->AddAtom(Walker);
    75   Walker = new atom();
     76  Walker = World::get()->createAtom();
    7677  Walker->type = hydrogen;
    7778  Walker->node->Init(0., 0., 0. );
     
    9495
    9596  // add outer atoms
    96   Walker = new atom();
     97  Walker = World::get()->createAtom();
    9798  Walker->type = carbon;
    9899  Walker->node->Init(4., 0., 4. );
    99100  TestMolecule->AddAtom(Walker);
    100   Walker = new atom();
     101  Walker = World::get()->createAtom();
    101102  Walker->type = carbon;
    102103  Walker->node->Init(0., 4., 4. );
    103104  TestMolecule->AddAtom(Walker);
    104   Walker = new atom();
     105  Walker = World::get()->createAtom();
    105106  Walker->type = carbon;
    106107  Walker->node->Init(4., 4., 0. );
    107108  TestMolecule->AddAtom(Walker);
    108109  // add inner atoms
    109   Walker = new atom();
     110  Walker = World::get()->createAtom();
    110111  Walker->type = carbon;
    111112  Walker->node->Init(0.5, 0.5, 0.5 );
Note: See TracChangeset for help on using the changeset viewer.