Ignore:
Timestamp:
Nov 3, 2009, 2:34:02 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
c1b4a4
Parents:
5f9f8b
git-author:
Frederik Heber <heber@…> (11/03/09 14:27:15)
git-committer:
Frederik Heber <heber@…> (11/03/09 14:34:02)
Message:

Fixing not created adjacency list, partially fixing subgraph dissection in config::Load()

  • CreateAdjacencyList() was called with zero bonddistance.
  • this was due to max_distance not being initialised in the constructor to 0 and subsequently not set if Bond Length Table was not found.
  • new function SetMaxDistanceToMaxOfCovalentRadii() which sets the max_distance to twice the max of covalent radii of all elements.
  • config::Load() - atoms in copied molecule (by DepthFirstSearchAnalysis()) are made their own father (and originals are removed).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/builder.cpp

    r5f9f8b r08b88b  
    12501250  // translate each to its center and merge all molecules in MoleculeListClass into this molecule
    12511251  int N = molecules->ListOfMolecules.size();
    1252   int *src = new int(N);
     1252  int *src = new int[N];
    12531253  N=0;
    12541254  for (MoleculeList::iterator ListRunner = molecules->ListOfMolecules.begin(); ListRunner != molecules->ListOfMolecules.end(); ListRunner++) {
     
    12571257  }
    12581258  molecules->SimpleMultiAdd(mol, src, N);
    1259   delete(src);
     1259  delete[](src);
    12601260
    12611261  // ... and translate back
Note: See TracChangeset for help on using the changeset viewer.