Changeset 89c71f


Ignore:
Timestamp:
Sep 30, 2016, 3:51:12 PM (9 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Add_FitFragmentPartialChargesAction, Fix_ChargeSampling_PBC, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ParseParticles_split_forward_backward_Actions
Children:
257bd3
Parents:
ad6485
git-author:
Frederik Heber <heber@…> (09/27/16 09:57:45)
git-committer:
Frederik Heber <heber@…> (09/30/16 15:51:12)
Message:

FragmentationAction does not give error on adjacencyfile when not parsing state files.

File:
1 edited

Legend:

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

    rad6485 r89c71f  
    118118  boost::shared_ptr<AdjacencyList> FileChecker;
    119119  boost::filesystem::path filename(params.prefix.get() + std::string(ADJACENCYFILE));
    120   if ((params.ParseStateFiles.get())
    121     && boost::filesystem::exists(filename)
     120  if (params.ParseStateFiles.get()) {
     121    if (boost::filesystem::exists(filename)
    122122    && boost::filesystem::is_regular_file(filename)) {
    123     std::ifstream File;
    124     File.open(filename.string().c_str(), ios::out);
    125     FileChecker.reset(new AdjacencyList(File));
    126     File.close();
    127   } else {
    128     LOG(1, "INFO: Could not open default adjacency file " << filename.string() << ".");
     123      std::ifstream File;
     124      File.open(filename.string().c_str(), ios::out);
     125      FileChecker.reset(new AdjacencyList(File));
     126      File.close();
     127    } else {
     128      LOG(1, "INFO: Could not open default adjacency file " << filename.string() << ".");
     129      FileChecker.reset(new AdjacencyList);
     130    }
     131  } else
    129132    FileChecker.reset(new AdjacencyList);
    130   }
    131133
    132134  // make sure bond degree is correct
Note: See TracChangeset for help on using the changeset viewer.