Ignore:
Timestamp:
May 26, 2008, 10:52:00 AM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
71dc4e
Parents:
ccd028
Message:

molecule::CreateAdjacencyList() now needs IsAngstroem as parameter

This is necessary, as the database values (covalent radii et al) are in Angstroem, hence don't match if we use Bohrradii as length unit instead. CreateAdjacencyList() converts units and now finds correct bond structure and fragments properly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/builder.cpp

    rccd028 r5eb05a  
    931931                cout << Verbose(0) << "Creating connection matrix..." << endl;
    932932                start = clock();
    933                 mol->CreateAdjacencyList((ofstream *)&cout, atof(argv[argptr++]));
     933                mol->CreateAdjacencyList((ofstream *)&cout, atof(argv[argptr++]), configuration.GetIsAngstroem());
    934934                cout << Verbose(0) << "Fragmenting molecule with current connection matrix ..." << endl;
    935935                if (mol->first->next != mol->last) {
     
    11161116          }
    11171117          if (mol->first->next != mol->last) // if connect matrix is present already, redo it
    1118             mol->CreateAdjacencyList((ofstream *)&cout, mol->BondDistance);
     1118            mol->CreateAdjacencyList((ofstream *)&cout, mol->BondDistance, configuration.GetIsAngstroem());
    11191119          // free memory
    11201120          delete[](Elements);
     
    11591159        cin >> tmp1;
    11601160        start = clock();
    1161         mol->CreateAdjacencyList((ofstream *)&cout, tmp1);
     1161        mol->CreateAdjacencyList((ofstream *)&cout, tmp1, configuration.GetIsAngstroem());
    11621162        //mol->CreateListOfBondsPerAtom((ofstream *)&cout);
    11631163        Subgraphs = mol->DepthFirstSearchAnalysis((ofstream *)&cout, false, MinimumRingSize);
Note: See TracChangeset for help on using the changeset viewer.