Changes in src/molecule_dynamics.cpp [ebe4d6:24a5e0]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/molecule_dynamics.cpp
rebe4d6 r24a5e0 6 6 */ 7 7 8 #include "World.hpp" 8 9 #include "atom.hpp" 9 10 #include "config.hpp" … … 162 163 double molecule::ConstrainedPotential(struct EvaluatePotential &Params) 163 164 { 164 double tmp, result ;165 double tmp, result=0; 165 166 166 167 // go through every atom … … 485 486 bool status = true; 486 487 int MaxSteps = configuration.MaxOuterStep; 487 MoleculeListClass *MoleculePerStep = new MoleculeListClass( );488 MoleculeListClass *MoleculePerStep = new MoleculeListClass(World::get()); 488 489 // Get the Permutation Map by MinimiseConstrainedPotential 489 490 atom **PermutationMap = NULL; … … 505 506 Log() << Verbose(1) << "Filling intermediate " << MaxSteps << " steps with MDSteps of " << MDSteps << "." << endl; 506 507 for (int step = 0; step <= MaxSteps; step++) { 507 mol = new molecule(elemente);508 mol = World::get()->createMolecule(); 508 509 MoleculePerStep->insert(mol); 509 510 Walker = start;
Note:
See TracChangeset
for help on using the changeset viewer.