Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/World.cpp

    r35b698 r6d574a  
    1414#include "molecule.hpp"
    1515#include "periodentafel.hpp"
    16 #include "ThermoStatContainer.hpp"
    1716#include "Descriptors/AtomDescriptor.hpp"
    1817#include "Descriptors/AtomDescriptor_impl.hpp"
     
    2120#include "Descriptors/SelectiveIterator_impl.hpp"
    2221#include "Actions/ManipulateAtomsProcess.hpp"
     22#include "Helpers/Assert.hpp"
    2323
    2424#include "Patterns/Singleton_impl.hpp"
     
    9191};
    9292
    93 class ThermoStatContainer * World::getThermostats()
    94 {
    95   return Thermostats;
    96 }
    97 
    98 
    9993int World::getExitFlag() {
    10094  return ExitFlag;
     
    112106  molecule *mol = NULL;
    113107  mol = NewMolecule();
    114   cout << "Creating molecule with id " << currMoleculeId << "." << endl;
    115   assert(!molecules.count(currMoleculeId));
     108  ASSERT(!molecules.count(currMoleculeId),"currMoleculeId did not specify an unused ID");
    116109  mol->setId(currMoleculeId++);
    117110  // store the molecule by ID
     
    129122  OBSERVE;
    130123  molecule *mol = molecules[id];
    131   assert(mol);
     124  ASSERT(mol,"Molecule id that was meant to be destroyed did not exist");
    132125  DeleteMolecule(mol);
    133126  molecules.erase(id);
     
    165158  OBSERVE;
    166159  atom *atom = atoms[id];
    167   assert(atom);
     160  ASSERT(atom,"Atom ID that was meant to be destroyed did not exist");
    168161  DeleteAtom(atom);
    169162  atoms.erase(id);
     
    177170  if(!target){
    178171    target = atoms[oldId];
    179     assert(target && "Atom with that ID not found");
     172    ASSERT(target,"Atom with that ID not found");
    180173    return target->changeId(newId);
    181174  }
     
    289282    periode(new periodentafel),
    290283    configuration(new config),
    291     Thermostats(new ThermoStatContainer),
    292284    ExitFlag(0),
    293285    atoms(),
     
    315307  delete periode;
    316308  delete configuration;
    317   delete Thermostats;
    318309  MoleculeSet::iterator molIter;
    319310  for(molIter=molecules.begin();molIter!=molecules.end();++molIter){
Note: See TracChangeset for help on using the changeset viewer.