Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/FragmentationAction/FragmentationAction.cpp

    rce7fdc r07a47e  
    2525#include "CodePatterns/Log.hpp"
    2626#include "CodePatterns/Verbose.hpp"
     27#include "Fragmentation/Fragmentation.hpp"
     28#include "Fragmentation/HydrogenSaturation_enum.hpp"
    2729#include "Graph/DepthFirstSearchAnalysis.hpp"
    2830#include "molecule.hpp"
     
    4951  getParametersfromValueStorage();
    5052
     53  LOG(0, "STATUS: Fragmenting molecular system with current connection matrix maximum bond distance "
     54      << params.distance << " up to "
     55      << params.order << " order. Fragment files begin with "
     56      << params.prefix << " and are stored as: "
     57      << params.types << "." << std::endl);
     58
    5159  DepthFirstSearchAnalysis DFS;
    5260  for (World::MoleculeSelectionConstIterator iter = World::getInstance().beginMoleculeSelection(); iter != World::getInstance().endMoleculeSelection(); ++iter) {
     
    5664    start = clock();
    5765    if (mol->hasBondStructure()) {
    58       LOG(1, "STAUS: Fragmenting molecule with current connection matrix ...");
    59       ExitFlag = mol->FragmentMolecule(params.order, params.path, DFS);
     66      Fragmentation Fragmenter(mol, params.DoSaturation ? DoSaturate : DontSaturate);
     67      Fragmenter.setOutputTypes(params.types);
     68      ExitFlag = Fragmenter.FragmentMolecule(params.order, params.prefix, DFS);
    6069    }
    6170    World::getInstance().setExitFlag(ExitFlag);
Note: See TracChangeset for help on using the changeset viewer.