Ignore:
Timestamp:
Aug 31, 2016, 10:54:47 AM (9 years ago)
Author:
Frederik Heber <heber@…>
Branches:
FragmentMolecule_checks_bonddegrees, Gui_Fixes
Children:
e3d0fe
Parents:
6e5ca9
git-author:
Frederik Heber <heber@…> (08/31/16 10:45:35)
git-committer:
Frederik Heber <heber@…> (08/31/16 10:54:47)
Message:

Added "parse-state-files" option to fragment-molecule which is off by default.

  • this prevents accidental parsing of stale keysets, adjacency, or orderatsite files. These hard to find errors ever and again cause failing fragmentation because e.g. some hydrogen is suddenly in the keysets although hydrogens are excluded.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Fragmentation/Fragmentation.cpp

    r6e5ca9 r56c55f3  
    118118    int Order,
    119119    const std::string &prefix,
    120     const Graph &ParsedFragmentList)
     120    const Graph &ParsedFragmentList,
     121    const bool _ParseStateFile)
    121122{
    122123  std::fstream File;
     
    178179
    179180  // ===== 4. check globally whether there's something to do actually (first adaptivity check)
    180   FragmentationToDo = FragmentationToDo && ParseOrderAtSiteFromFile(atomids, prefix, Global_local_bimap);
     181  if (_ParseStateFile)
     182    FragmentationToDo = FragmentationToDo && ParseOrderAtSiteFromFile(atomids, prefix, Global_local_bimap);
    181183
    182184  // =================================== Begin of FRAGMENTATION ===============================
Note: See TracChangeset for help on using the changeset viewer.