Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/World.cpp

    r6d574a r35b698  
    1414#include "molecule.hpp"
    1515#include "periodentafel.hpp"
     16#include "ThermoStatContainer.hpp"
    1617#include "Descriptors/AtomDescriptor.hpp"
    1718#include "Descriptors/AtomDescriptor_impl.hpp"
     
    2021#include "Descriptors/SelectiveIterator_impl.hpp"
    2122#include "Actions/ManipulateAtomsProcess.hpp"
    22 #include "Helpers/Assert.hpp"
    2323
    2424#include "Patterns/Singleton_impl.hpp"
     
    9191};
    9292
     93class ThermoStatContainer * World::getThermostats()
     94{
     95  return Thermostats;
     96}
     97
     98
    9399int World::getExitFlag() {
    94100  return ExitFlag;
     
    106112  molecule *mol = NULL;
    107113  mol = NewMolecule();
    108   ASSERT(!molecules.count(currMoleculeId),"currMoleculeId did not specify an unused ID");
     114  cout << "Creating molecule with id " << currMoleculeId << "." << endl;
     115  assert(!molecules.count(currMoleculeId));
    109116  mol->setId(currMoleculeId++);
    110117  // store the molecule by ID
     
    122129  OBSERVE;
    123130  molecule *mol = molecules[id];
    124   ASSERT(mol,"Molecule id that was meant to be destroyed did not exist");
     131  assert(mol);
    125132  DeleteMolecule(mol);
    126133  molecules.erase(id);
     
    158165  OBSERVE;
    159166  atom *atom = atoms[id];
    160   ASSERT(atom,"Atom ID that was meant to be destroyed did not exist");
     167  assert(atom);
    161168  DeleteAtom(atom);
    162169  atoms.erase(id);
     
    170177  if(!target){
    171178    target = atoms[oldId];
    172     ASSERT(target,"Atom with that ID not found");
     179    assert(target && "Atom with that ID not found");
    173180    return target->changeId(newId);
    174181  }
     
    282289    periode(new periodentafel),
    283290    configuration(new config),
     291    Thermostats(new ThermoStatContainer),
    284292    ExitFlag(0),
    285293    atoms(),
     
    307315  delete periode;
    308316  delete configuration;
     317  delete Thermostats;
    309318  MoleculeSet::iterator molIter;
    310319  for(molIter=molecules.begin();molIter!=molecules.end();++molIter){
Note: See TracChangeset for help on using the changeset viewer.