Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/molecule_dynamics.cpp

    rebe4d6 r24a5e0  
    66 */
    77
     8#include "World.hpp"
    89#include "atom.hpp"
    910#include "config.hpp"
     
    162163double molecule::ConstrainedPotential(struct EvaluatePotential &Params)
    163164{
    164   double tmp, result;
     165  double tmp, result=0;
    165166
    166167  // go through every atom
     
    485486  bool status = true;
    486487  int MaxSteps = configuration.MaxOuterStep;
    487   MoleculeListClass *MoleculePerStep = new MoleculeListClass();
     488  MoleculeListClass *MoleculePerStep = new MoleculeListClass(World::get());
    488489  // Get the Permutation Map by MinimiseConstrainedPotential
    489490  atom **PermutationMap = NULL;
     
    505506  Log() << Verbose(1) << "Filling intermediate " << MaxSteps << " steps with MDSteps of " << MDSteps << "." << endl;
    506507  for (int step = 0; step <= MaxSteps; step++) {
    507     mol = new molecule(elemente);
     508    mol = World::get()->createMolecule();
    508509    MoleculePerStep->insert(mol);
    509510    Walker = start;
Note: See TracChangeset for help on using the changeset viewer.