Ignore:
Timestamp:
Feb 26, 2010, 2:01:57 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
db6b872
Parents:
f467c6 (diff), dc5413 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'StructureRefactoring' into MenuRefactoring

Conflicts:

molecuilder/src/UIElements/TextDialog.cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/molecule_dynamics.cpp

    rf467c6 rd50264  
    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 
     165  double tmp = 0.;
     166  double result = 0.;
    166167  // go through every atom
    167168  atom *Runner = NULL;
     
    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.