Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/molecule_dynamics.cpp

    r24a5e0 re3cbf9  
    66 */
    77
    8 #include "World.hpp"
    98#include "atom.hpp"
    109#include "config.hpp"
     
    163162double molecule::ConstrainedPotential(struct EvaluatePotential &Params)
    164163{
    165   double tmp, result=0;
     164  double tmp = 0.;
     165  double result = 0.;
    166166
    167167  // go through every atom
     
    486486  bool status = true;
    487487  int MaxSteps = configuration.MaxOuterStep;
    488   MoleculeListClass *MoleculePerStep = new MoleculeListClass(World::get());
     488  MoleculeListClass *MoleculePerStep = new MoleculeListClass();
    489489  // Get the Permutation Map by MinimiseConstrainedPotential
    490490  atom **PermutationMap = NULL;
     
    506506  Log() << Verbose(1) << "Filling intermediate " << MaxSteps << " steps with MDSteps of " << MDSteps << "." << endl;
    507507  for (int step = 0; step <= MaxSteps; step++) {
    508     mol = World::get()->createMolecule();
     508    mol = new molecule(elemente);
    509509    MoleculePerStep->insert(mol);
    510510    Walker = start;
Note: See TracChangeset for help on using the changeset viewer.