Changes in / [4c9101:fc3aff]


Ignore:
Files:
28 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r4c9101 rfc3aff  
    158158          AC_DEFINE(LOG_OBSERVER,1, ["Use observer log."])
    159159          AC_DEFINE(HAVE_DEBUG,2, ["Use debug setting to compile code."])
    160           dnl AC_DEFINE(QT_DEBUG,, ["Enable Qt debug messages."])
     160          AC_DEFINE(QT_DEBUG,, ["Enable Qt debug messages."])
    161161          have_debug="full"
    162162        ],[
    163163          AC_DEFINE(NDEBUG,1, ["Don't compile in debugging code."])
    164164          AC_DEFINE(HAVE_DEBUG,0, ["Use debug setting to compile code."])
    165           AC_DEFINE(QT_NO_DEBUG_OUTPUT,, ["Disable Qt debug messages."])
     165          AC_DEFINE(QT_NO_DEBUG,, ["Disable Qt debug messages."])
    166166          have_debug="no"
    167167        ])
  • src/Graph/CyclicStructureAnalysis.cpp

    r4c9101 rfc3aff  
    103103}
    104104
    105 /** Performs a BFS from \a *Root, trying to find the same node and hence all cycles.
    106  *
    107  * We exclude the back edge, hence the direct way is prohibited. But as it is a back edge,
    108  * there must be at least one more way to \a *Root. This leads us to all cycles for this
    109  * back edge.
    110  *
     105/** Performs a BFS from \a *Root, trying to find the same node and hence a cycle.
    111106 * \param OtherAtom pointing to Root on return indicating found cycle
    112107 * \param *&BackEdge the edge from root that we don't want to move along
    113  * \param MinRingSize set to minimum over all cycles encountered
    114  */
    115 void CyclicStructureAnalysis::findAllCyclesforBackEdge(
    116     atom *&OtherAtom,
    117     bond::ptr &BackEdge,
    118     int &MinRingSize)
    119 {
    120   size_t MaximumHorizon = (size_t)-1; // will overflow to largest number
     108 */
     109void CyclicStructureAnalysis::CyclicBFSFromRootToRoot(atom *&OtherAtom, bond::ptr &BackEdge)
     110{
    121111  atom *Walker = NULL;
    122112  do { // look for Root
     
    125115    BFSStack.pop_back();
    126116    LOG(2, "INFO: Current Walker is " << *Walker << ", we look for SP to Root " << *Root << ".");
    127 
    128     // check all edges/bonds from current Walker
    129     if (MaximumHorizon >=  (size_t)ShortestPathList[Walker->getNr()]) {
    130       const BondList& ListOfBonds = Walker->getListOfBonds();
    131       for (BondList::const_iterator Runner = ListOfBonds.begin();
    132           Runner != ListOfBonds.end();
    133           ++Runner) {
    134         if ((*Runner) != BackEdge) { // only walk along DFS spanning tree (otherwise we always find SP of one being backedge Binder)
    135           OtherAtom = (*Runner)->GetOtherAtom(Walker);
    136           if ((treatment == IncludeHydrogen) || (OtherAtom->getType()->getAtomicNumber() != 1)) {
    137             LOG(2, "INFO: Current OtherAtom is: " << OtherAtom->getName() << " for bond " << *(*Runner) << ".");
    138             if (ColorList[OtherAtom->getNr()] == GraphEdge::white) {
    139               // we discovered a new node/atom
    140               TouchedStack.push_front(OtherAtom);
    141               ColorList[OtherAtom->getNr()] = GraphEdge::lightgray;
    142               PredecessorList[OtherAtom->getNr()] = Walker; // Walker is the predecessor
    143               ShortestPathList[OtherAtom->getNr()] = ShortestPathList[Walker->getNr()] + 1;
    144               LOG(2, "INFO: Coloring OtherAtom " << OtherAtom->getName() << " lightgray, its predecessor is " << Walker->getName() << " and its Shortest Path is " << ShortestPathList[OtherAtom->getNr()] << " egde(s) long.");
    145               //if (ShortestPathList[OtherAtom->getNr()] < MinimumRingSize[Walker->GetTrueFather()->getNr()]) { // Check for maximum distance
    146               LOG(3, "ACCEPT: Putting OtherAtom " << OtherAtom->getName() << " into queue.");
    147               BFSStack.push_front(OtherAtom);
    148               //}
    149             } else {
    150               LOG(3, "REJECT: Not Adding, has already been visited.");
     117    const BondList& ListOfBonds = Walker->getListOfBonds();
     118    for (BondList::const_iterator Runner = ListOfBonds.begin();
     119        Runner != ListOfBonds.end();
     120        ++Runner) {
     121      if ((*Runner) != BackEdge) { // only walk along DFS spanning tree (otherwise we always find SP of one being backedge Binder)
     122        OtherAtom = (*Runner)->GetOtherAtom(Walker);
     123        if ((treatment == IncludeHydrogen) || (OtherAtom->getType()->getAtomicNumber() != 1)) {
     124          LOG(2, "INFO: Current OtherAtom is: " << OtherAtom->getName() << " for bond " << *(*Runner) << ".");
     125          if (ColorList[OtherAtom->getNr()] == GraphEdge::white) {
     126            TouchedStack.push_front(OtherAtom);
     127            ColorList[OtherAtom->getNr()] = GraphEdge::lightgray;
     128            PredecessorList[OtherAtom->getNr()] = Walker; // Walker is the predecessor
     129            ShortestPathList[OtherAtom->getNr()] = ShortestPathList[Walker->getNr()] + 1;
     130            LOG(2, "INFO: Coloring OtherAtom " << OtherAtom->getName() << " lightgray, its predecessor is " << Walker->getName() << " and its Shortest Path is " << ShortestPathList[OtherAtom->getNr()] << " egde(s) long.");
     131            //if (ShortestPathList[OtherAtom->getNr()] < MinimumRingSize[Walker->GetTrueFather()->getNr()]) { // Check for maximum distance
     132            LOG(3, "ACCEPT: Putting OtherAtom " << OtherAtom->getName() << " into queue.");
     133            BFSStack.push_front(OtherAtom);
     134            //}
     135          } else {
     136            LOG(3, "REJECT: Not Adding, has already been visited.");
     137          }
     138          if (OtherAtom == Root)
     139            break;
     140        } else {
     141          LOG(2, "INFO: Skipping hydrogen atom " << *OtherAtom << ".");
     142          ColorList[OtherAtom->getNr()] = GraphEdge::black;
     143        }
     144      } else {
     145        LOG(2, "REJECT: Bond " << *(*Runner) << " not Visiting, is the back edge.");
     146      }
     147    }
     148    ColorList[Walker->getNr()] = GraphEdge::black;
     149    LOG(1, "INFO: Coloring Walker " << Walker->getName() << " " << GraphEdge::getColorName(ColorList[Walker->getNr()]) << ".");
     150    if (OtherAtom == Root) { // if we have found the root, check whether this cycle wasn't already found beforehand
     151      // step through predecessor list
     152      LOG(4, "DEBUG: Checking whether all predecessors are already marked cyclic ...");
     153      while (OtherAtom != BackEdge->rightatom) {  // Note that leftatom is Root itself
     154        if (!OtherAtom->GetTrueFather()->IsCyclic) { // if one bond in the loop is not marked as cyclic, we haven't found this cycle yet
     155          LOG(4, "\tDEBUG: OtherAtom " << *OtherAtom << " is not cyclic, breaking.");
     156          break;
     157        } else
     158          OtherAtom = PredecessorList[OtherAtom->getNr()];
     159      }
     160      LOG(4, "DEBUG: Checking done.");
     161      // if each atom in found cycle is cyclic, loop's been found before already
     162      if (OtherAtom == BackEdge->rightatom) { // loop got round completely
     163        LOG(3, "INFO: All bonds are marked cyclic already, checking allcycles whether cycle is already present.");
     164        const cycle_t currentcycle = extractCurrentCycle(BackEdge);
     165        const cycles_t::const_iterator iter =
     166            std::find(allcycles.begin(), allcycles.end(), currentcycle);
     167        if (iter == allcycles.end()) { // not found
     168          OtherAtom = Root;
     169          LOG(2, "INFO: Cycle is not present.");
     170          LOG(2, "INFO: We have reached Root " << *OtherAtom << " and may extract the cycle.");
     171        } else {
     172          LOG(2, "INFO: Cycle is already present.");
     173          do {
     174            ASSERT(!TouchedStack.empty(), "CyclicStructureAnalysis_CyclicBFSFromRootToRoot() - TouchedStack is empty!");
     175            OtherAtom = TouchedStack.front();
     176            TouchedStack.pop_front();
     177            if (PredecessorList[OtherAtom->getNr()] == Walker) {
     178              LOG(4, "INFO: Removing " << *OtherAtom << " from lists and stacks.");
     179              PredecessorList[OtherAtom->getNr()] = NULL;
     180              ShortestPathList[OtherAtom->getNr()] = -1;
     181              ColorList[OtherAtom->getNr()] = GraphEdge::white;
     182              // rats ... deque has no find()
     183              std::deque<atom *>::iterator iter = find(
     184                  BFSStack.begin(),
     185                  BFSStack.end(),
     186                  OtherAtom);
     187              ASSERT(iter != BFSStack.end(),
     188                  "CyclicStructureAnalysis_CyclicBFSFromRootToRoot() - can't find "+toString(*OtherAtom)+" on stack!");
     189              BFSStack.erase(iter);
    151190            }
    152             if (OtherAtom == Root)
    153               break;
    154           } else {
    155             LOG(2, "INFO: Skipping hydrogen atom " << *OtherAtom << ".");
    156             ColorList[OtherAtom->getNr()] = GraphEdge::black;
    157           }
    158         } else {
    159           LOG(2, "REJECT: Bond " << *(*Runner) << " not Visiting, is the back edge.");
     191          } while ((!TouchedStack.empty()) && (PredecessorList[OtherAtom->getNr()] == NULL));
     192          TouchedStack.push_front(OtherAtom); // last was wrongly popped
     193          OtherAtom = BackEdge->rightatom; // set to not Root
    160194        }
     195      } else {
     196        OtherAtom = Root;
     197        LOG(2, "INFO: We have reached Root " << *OtherAtom << " and may extract the cycle.");
    161198      }
    162       ColorList[Walker->getNr()] = GraphEdge::black;
    163       LOG(1, "INFO: Coloring Walker " << Walker->getName() << " " << GraphEdge::getColorName(ColorList[Walker->getNr()]) << ".");
    164     } else {
    165       LOG(1, "INFO: Skipping bonds for " << Walker->getName() << " as it resides on the horizon.");
    166     }
    167 
    168     // have we closed the cycle, i.e. stumbled upon Root by another mean than
    169     // the back edge?
    170     if (OtherAtom == Root) {
    171       // check whether this cycle wasn't already found beforehand by stepping
    172       // through predecessor list
    173       int RingSize = RetrieveCycleMembers(OtherAtom, BackEdge, MinRingSize);
    174       MaximumHorizon = std::min( MaximumHorizon, (size_t)RingSize );
    175       LOG(2, "INFO: Maximum horizon is set to " << MaximumHorizon);
    176 
    177       // remove last step and prepare for a possible yet another path to Root
    178       do {
    179         ASSERT(!TouchedStack.empty(), "CyclicStructureAnalysis_CyclicBFSFromRootToRoot() - TouchedStack is empty!");
    180         OtherAtom = TouchedStack.front();
    181         TouchedStack.pop_front();
    182         if (PredecessorList[OtherAtom->getNr()] == Walker) {
    183           LOG(4, "INFO: Removing " << *OtherAtom << " from lists and stacks.");
    184           PredecessorList[OtherAtom->getNr()] = NULL;
    185           ShortestPathList[OtherAtom->getNr()] = -1;
    186           ColorList[OtherAtom->getNr()] = GraphEdge::white;
    187           // rats ... deque has no find()
    188           std::deque<atom *>::iterator iter = find(
    189               BFSStack.begin(),
    190               BFSStack.end(),
    191               OtherAtom);
    192           ASSERT(iter != BFSStack.end(),
    193               "CyclicStructureAnalysis_CyclicBFSFromRootToRoot() - can't find "+toString(*OtherAtom)+" on stack!");
    194           BFSStack.erase(iter);
    195         }
    196       } while ((!TouchedStack.empty()) && (PredecessorList[OtherAtom->getNr()] == NULL));
    197       TouchedStack.push_front(OtherAtom); // last was wrongly popped
    198       OtherAtom = BackEdge->rightatom; // set to not Root
    199199    }
    200200  } while ((!BFSStack.empty()) && (OtherAtom != Root) && (OtherAtom != NULL)); // || (ShortestPathList[OtherAtom->getNr()] < MinimumRingSize[Walker->GetTrueFather()->getNr()])));
     
    233233 * \param &BFS accounting structure
    234234 * \param &MinRingSize global minimum distance from one node without encountering oneself, set on return
    235  * \return size of found cycle, -1 - nothing found, something went wrong
    236  */
    237 int CyclicStructureAnalysis::RetrieveCycleMembers(
     235 * \param &NumCyles number of cycles in graph
     236 */
     237void CyclicStructureAnalysis::RetrieveCycleMembers(
    238238    atom *&OtherAtom,
    239239    bond::ptr &BackEdge,
    240     int &MinRingSize)
    241 {
     240    int &MinRingSize,
     241    int &NumCycles)
     242{
     243  atom *Walker = NULL;
    242244  int RingSize = -1;
    243   bool newcycle = false;
    244245
    245246  if (OtherAtom == Root) {
    246247    // now climb back the predecessor list and thus find the cycle members
     248    NumCycles++;
    247249    Root->GetTrueFather()->IsCyclic = true;
    248250
     251    // exctract cycle
    249252    {
    250       // check whether cycle is present already
    251       atom *Walker = Root;
    252       LOG(4, "DEBUG: Checking whether all predecessors are already marked cyclic ...");
    253       while (Walker != BackEdge->rightatom) {  // Note that leftatom is Root itself
    254         if (!Walker->GetTrueFather()->IsCyclic) { // if one bond in the loop is not marked as cyclic, we haven't found this cycle yet
    255           LOG(4, "\tDEBUG: Walker " << *Walker << " is not cyclic, breaking.");
    256           break;
    257         } else
    258           Walker = PredecessorList[Walker->getNr()];
    259       }
    260       LOG(4, "DEBUG: Checking done.");
    261 
    262       // if each atom in found cycle is cyclic, loop's been found before already
    263 
    264       // exctract cycle
    265       {
    266         const cycle_t currentcycle = extractCurrentCycle(BackEdge);
    267         if (Walker != BackEdge->rightatom) { // loop got round completely
    268           allcycles.push_back(currentcycle);
    269           newcycle = true;
    270         } else {
    271           LOG(3, "INFO: All bonds are marked cyclic already, checking allcycles whether cycle is already present.");
    272           const cycles_t::const_iterator iter =
    273               std::find(allcycles.begin(), allcycles.end(), currentcycle);
    274           if (iter == allcycles.end()) { // not found
    275             allcycles.push_back(currentcycle);
    276             newcycle = true;
    277           }
    278         }
    279         RingSize = currentcycle.size();
    280         if (newcycle) {
    281           LOG(0, "INFO: " << "Found ring contains: " << currentcycle << "  with a length of " << RingSize);
    282         } else {
    283           LOG(1, "INFO: cycle " << currentcycle << " is already present.");
    284         }
    285       }
    286     }
    287 
    288     if (newcycle) {
    289       // walk through all and set MinimumRingSize
    290       atom *Walker = Root;
     253      allcycles.push_back(extractCurrentCycle(BackEdge));
     254      CyclicStructureAnalysis::cycle_t &lastcycle = allcycles.back();
     255      RingSize = lastcycle.size();
     256      LOG(0, "INFO: " << "Found ring contains: " << lastcycle << "  with a length of " << RingSize);
     257    }
     258
     259    // walk through all and set MinimumRingSize
     260    Walker = Root;
     261    if ((MinimumRingSize.count(Walker->GetTrueFather()->getNr()) == 0)
     262        || (RingSize < MinimumRingSize[Walker->GetTrueFather()->getNr()])) {
     263      MinimumRingSize[Walker->GetTrueFather()->getNr()] = RingSize;
     264    } else {
     265      LOG(3, "INFO: Not setting MinimumRingSize of "<< *(Walker->GetTrueFather())
     266          << " to " << RingSize << " which is already set to "
     267          << MinimumRingSize[Walker->GetTrueFather()->getNr()] << ".");
     268    }
     269    while (Walker != BackEdge->rightatom) { // note that Root is leftatom
     270      Walker = PredecessorList[Walker->getNr()];
    291271      if ((MinimumRingSize.count(Walker->GetTrueFather()->getNr()) == 0)
    292           || (RingSize < MinimumRingSize[Walker->GetTrueFather()->getNr()])) {
     272          || (RingSize < MinimumRingSize[Walker->GetTrueFather()->getNr()]))
    293273        MinimumRingSize[Walker->GetTrueFather()->getNr()] = RingSize;
    294       } else {
    295         LOG(3, "INFO: Not setting MinimumRingSize of "<< *(Walker->GetTrueFather())
    296             << " to " << RingSize << " which is already set to "
    297             << MinimumRingSize[Walker->GetTrueFather()->getNr()] << ".");
    298       }
    299       while (Walker != BackEdge->rightatom) { // note that Root is leftatom
    300         Walker = PredecessorList[Walker->getNr()];
    301         if ((MinimumRingSize.count(Walker->GetTrueFather()->getNr()) == 0)
    302             || (RingSize < MinimumRingSize[Walker->GetTrueFather()->getNr()]))
    303           MinimumRingSize[Walker->GetTrueFather()->getNr()] = RingSize;
    304       }
    305       if ((RingSize < MinRingSize) || (MinRingSize == -1))
    306         MinRingSize = RingSize;
    307     }
     274    }
     275    if ((RingSize < MinRingSize) || (MinRingSize == -1))
     276      MinRingSize = RingSize;
    308277  } else {
    309278    LOG(1, "INFO: No ring containing " << *Root << " with length equal to or smaller than " << MinimumRingSize[Root->GetTrueFather()->getNr()] << " found.");
    310279  }
    311   return RingSize;
    312280}
    313281
     
    390358 * \param *&MinimumRingSize array with minimum distance without encountering oneself for each atom
    391359 * \param MinRingSize global minium distance
    392  */
    393 void CyclicStructureAnalysis::AssignRingSizetoNonCycleMembers(const int MinRingSize)
     360 * \param NumCyles number of cycles in graph
     361 */
     362void CyclicStructureAnalysis::AssignRingSizetoNonCycleMembers(const int MinRingSize, const int NumCycles)
    394363{
    395364  atom *Walker = NULL;
     
    411380      LOG(1, "INFO: Minimum ring size of " << *Walker << " is " << MinimumRingSize[Walker->GetTrueFather()->getNr()] << ".");
    412381    }
    413     LOG(1, "INFO: Minimum ring size is " << MinRingSize << ", over " << allcycles.size() << " cycle(s) total.");
     382    LOG(1, "INFO: Minimum ring size is " << MinRingSize << ", over " << NumCycles << " cycle(s) total.");
    414383  } else
    415384    LOG(1, "INFO: No rings were detected in the molecular structure.");
     
    430399  atom *OtherAtom = NULL;
    431400  bond::ptr BackEdge;
     401  int NumCycles = 0;
    432402  int MinRingSize = -1;
    433403
     
    445415
    446416  LOG(1, "STATUS: Analysing cycles ... ");
     417  NumCycles = 0;
    447418  while (!BackEdgeStack->empty()) {
    448419    BackEdge = BackEdgeStack->front();
     
    457428    LOG(1, "---------------------------------------------------------------------------------------------------------");
    458429    OtherAtom = NULL;
    459     // find all cycles for current BackEdge
    460     findAllCyclesforBackEdge(OtherAtom, BackEdge, MinRingSize);
     430    // go to next cycle via BFS
     431    CyclicBFSFromRootToRoot(OtherAtom, BackEdge);
     432    // get all member nodes of this cycle
     433    RetrieveCycleMembers(OtherAtom, BackEdge, MinRingSize, NumCycles);
    461434
    462435    CleanAllTouched();
    463436  }
    464   AssignRingSizetoNonCycleMembers(MinRingSize);
     437  AssignRingSizetoNonCycleMembers(MinRingSize, NumCycles);
    465438}
    466439
  • src/Graph/CyclicStructureAnalysis.hpp

    r4c9101 rfc3aff  
    5858  void InitializeToRoot(atom *&Walker);
    5959  // performing tasks
    60   void findAllCyclesforBackEdge(atom *&OtherAtom, bond::ptr &BackEdge, int &MinRingSize);
    61   int RetrieveCycleMembers(atom *&OtherAtom, bond::ptr &BackEdge, int &MinRingSize);
     60  void CyclicBFSFromRootToRoot(atom *&OtherAtom, bond::ptr &BackEdge);
     61  void RetrieveCycleMembers(atom *&OtherAtom, bond::ptr &BackEdge, int &MinRingSize, int &NumCycles);
    6262  cycle_t extractCurrentCycle(bond::ptr &BackEdge);
    6363  void BFSToNextCycle(atom *Walker);
    64   void AssignRingSizetoNonCycleMembers(const int MinRingSize);
     64  void AssignRingSizetoNonCycleMembers(const int MinRingSize, const int NumCycles);
    6565  // output
    6666  void OutputAlreadyVisited(int *list);
  • src/UIElements/Views/Qt4/QDebugStream.hpp

    r4c9101 rfc3aff  
    1515
    1616#include <QTextEdit>
    17 #include <QDebug>
    1817
    1918#include <ostream>
     
    4241  {
    4342    // output anything that is left
    44     if (!m_string.empty()) {
     43    if (!m_string.empty())
    4544      log_window->append(m_string.c_str());
    46       qDebug() << m_string.c_str();
    47     }
    4845
    4946    m_stream.rdbuf(m_old_buf);
     
    5552    if (v == '\n') {
    5653      log_window->append(m_string.c_str());
    57       qDebug() << m_string.c_str();
    5854      m_string.erase(m_string.begin(), m_string.end());
    5955    } else
     
    7369        std::string tmp(m_string.begin(), m_string.begin() + pos);
    7470        log_window->append(tmp.c_str());
    75         qDebug() << tmp.c_str();
    7671        m_string.erase(m_string.begin(), m_string.begin() + pos + 1);
    7772      }
  • tests/Fragmentations/Fragmenting/anthracene/testsuite-fragmenting-anthracene-order1.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 1 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 1 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/anthracene/testsuite-fragmenting-anthracene-order2.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 2 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 2 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/anthracene/testsuite-fragmenting-anthracene-order3.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 3 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 3 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/anthracene/testsuite-fragmenting-anthracene-order4.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 4 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 4 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/anthracene/testsuite-fragmenting-anthracene-order5.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 5 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 5 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/anthracene/testsuite-fragmenting-anthracene-order6.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 6 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 6 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/coronene/testsuite-fragmenting-coronene-order1.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 1 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 1 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/coronene/testsuite-fragmenting-coronene-order2.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 2 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 2 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/coronene/testsuite-fragmenting-coronene-order3.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 3 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 3 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/coronene/testsuite-fragmenting-coronene-order4.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 4 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 4 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/coronene/testsuite-fragmenting-coronene-order5.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 5 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 5 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/coronene/testsuite-fragmenting-coronene-order6.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 6 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 6 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/naphthalene/testsuite-fragmenting-naphthalene-order1.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 1 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 1 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/naphthalene/testsuite-fragmenting-naphthalene-order2.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 2 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 2 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/naphthalene/testsuite-fragmenting-naphthalene-order3.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 3 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 3 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/naphthalene/testsuite-fragmenting-naphthalene-order4.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 4 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 4 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/naphthalene/testsuite-fragmenting-naphthalene-order5.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 5 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 5 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/naphthalene/testsuite-fragmenting-naphthalene-order6.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 6 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 6 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/phenanthrene/testsuite-fragmenting-phenanthrene-order1.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 1 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 1 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/phenanthrene/testsuite-fragmenting-phenanthrene-order2.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 2 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 2 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/phenanthrene/testsuite-fragmenting-phenanthrene-order3.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 3 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 3 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/phenanthrene/testsuite-fragmenting-phenanthrene-order4.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 4 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 4 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/phenanthrene/testsuite-fragmenting-phenanthrene-order5.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 5 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 5 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
  • tests/Fragmentations/Fragmenting/phenanthrene/testsuite-fragmenting-phenanthrene-order6.at

    r4c9101 rfc3aff  
    3333AT_CHECK([chmod u+w $file], 0)
    3434
    35 AT_CHECK([../../molecuilder -i $file --correct-bonddegree --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 6 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
     35AT_CHECK([../../molecuilder -i $file -I --select-molecule-by-id 0 --select-molecules-atoms -f $FILENAME --order 6 --distance $DISTANCE --DoCyclesFull 1  --output-types mpqc pcp pdb], 0, [stdout], [stderr])
    3636AT_CHECK([ls ${FILENAME}*.conf | wc -l | awk '{print $1}'], 0, [stdout], [ignore])
    3737AT_CHECK([test $FragNo == `cat stdout`], 0, [ignore], [ignore])
Note: See TracChangeset for help on using the changeset viewer.