Ignore:
Timestamp:
Oct 30, 2009, 9:05:30 AM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
b84ab4
Parents:
bc8155
git-author:
Frederik Heber <heber@…> (10/30/09 08:30:57)
git-committer:
Frederik Heber <heber@…> (10/30/09 09:05:30)
Message:

New class BondGraph.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/builder.cpp

    rbc8155 r5f697c  
    5353#include "atom.hpp"
    5454#include "bond.hpp"
     55#include "bondgraph.hpp"
    5556#include "boundary.hpp"
    5657#include "config.hpp"
     
    840841          }
    841842          if (mol->first->next != mol->last) // if connect matrix is present already, redo it
    842             mol->CreateAdjacencyList((ofstream *)&cout, mol->BondDistance, configuration->GetIsAngstroem());
     843            mol->CreateAdjacencyList((ofstream *)&cout, mol->BondDistance, configuration->GetIsAngstroem(), &BondGraph::CovalentMinMaxDistance, NULL);
    843844          // free memory
    844845          delete[](Elements);
     
    896897          cin >> bonddistance;
    897898          start = clock();
    898           mol->CreateAdjacencyList((ofstream *)&cout, bonddistance, configuration->GetIsAngstroem());
     899          mol->CreateAdjacencyList((ofstream *)&cout, bonddistance, configuration->GetIsAngstroem(), &BondGraph::CovalentMinMaxDistance, NULL);
    899900          end = clock();
    900901          cout << Verbose(0) << "Clocks for this operation: " << (end-start) << ", time: " << ((double)(end-start)/CLOCKS_PER_SEC) << "s." << endl;
     
    15551556                class StackClass<bond *> *BackEdgeStack = NULL;
    15561557                class StackClass<bond *> *LocalBackEdgeStack = NULL;
    1557                 mol->CreateAdjacencyList((ofstream *)&cout, atof(argv[argptr]), configuration.GetIsAngstroem());
     1558                mol->CreateAdjacencyList((ofstream *)&cout, atof(argv[argptr]), configuration.GetIsAngstroem(), &BondGraph::CovalentMinMaxDistance, NULL);
    15581559                Subgraphs = mol->DepthFirstSearchAnalysis((ofstream *)&cout, BackEdgeStack);
    15591560                if (Subgraphs != NULL) {
     
    19121913                cout << Verbose(0) << "Creating connection matrix..." << endl;
    19131914                start = clock();
    1914                 mol->CreateAdjacencyList((ofstream *)&cout, atof(argv[argptr++]), configuration.GetIsAngstroem());
     1915                mol->CreateAdjacencyList((ofstream *)&cout, atof(argv[argptr++]), configuration.GetIsAngstroem(), &BondGraph::CovalentMinMaxDistance, NULL);
    19151916                cout << Verbose(0) << "Fragmenting molecule with current connection matrix ..." << endl;
    19161917                if (mol->first->next != mol->last) {
Note: See TracChangeset for help on using the changeset viewer.