Changeset c24071 for src/Fragmentation


Ignore:
Timestamp:
Sep 14, 2016, 6:42:52 PM (8 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, GeometryObjects, Gui_displays_atomic_force_velocity, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, RotateToPrincipalAxisSystem_UndoRedo, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes, stable
Children:
c6ddcb
Parents:
c4abf2
git-author:
Frederik Heber <heber@…> (03/10/16 14:11:01)
git-committer:
Frederik Heber <heber@…> (09/14/16 18:42:52)
Message:

ExportGraph::operator() now returns bool.

Location:
src/Fragmentation/Exporters
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • src/Fragmentation/Exporters/ExportGraph.hpp

    rc4abf2 rc24071  
    4848  typedef boost::shared_ptr<SaturatedFragment> SaturatedFragment_ptr;
    4949
    50   virtual void operator()()=0;
     50  virtual bool operator()()=0;
    5151
    5252  /** Returns a saturated fragment for immediate use only.
  • src/Fragmentation/Exporters/ExportGraph_ToAtomFragments.cpp

    rc4abf2 rc24071  
    5757{}
    5858
    59 void ExportGraph_ToAtomFragments::operator()()
     59bool ExportGraph_ToAtomFragments::operator()()
    6060{
    6161  AtomFragmentsMap &atomfragments = AtomFragmentsMap::getInstance();
     
    9292  if (CurrentFragment == NULL) {
    9393    ELOG(1, "Some error while obtaining the next fragment occured.");
    94     return;
     94    return false;
    9595  }
     96  return true;
    9697}
  • src/Fragmentation/Exporters/ExportGraph_ToAtomFragments.hpp

    rc4abf2 rc24071  
    4242  virtual ~ExportGraph_ToAtomFragments();
    4343
    44         void operator()();
     44        bool operator()();
    4545};
    4646
  • src/Fragmentation/Exporters/ExportGraph_ToFiles.cpp

    rc4abf2 rc24071  
    103103/** Actual implementation of the export to files function.
    104104 */
    105 void ExportGraph_ToFiles::operator()()
     105bool ExportGraph_ToFiles::operator()()
    106106{
    107107  LOG(1, "INFO: Writing " << TotalGraph.size() << " possible bond fragmentation configs.");
     
    136136  if (CurrentFragment == NULL) {
    137137    ELOG(1, "Some error while obtaining the next fragment occured.");
    138     return;
     138    return false;
    139139  }
    140140  ForcesFile.close();
     
    150150  // restore orbital and Stop values
    151151  //CalculateOrbitals(*configuration);
     152  return true;
    152153}
    153154
  • src/Fragmentation/Exporters/ExportGraph_ToFiles.hpp

    rc4abf2 rc24071  
    3737        virtual ~ExportGraph_ToFiles();
    3838
    39         void operator()();
     39        bool operator()();
    4040
    4141        void setPrefix(const std::string &_prefix) {
  • src/Fragmentation/Exporters/ExportGraph_ToJobs.cpp

    rc4abf2 rc24071  
    6868{}
    6969
    70 void ExportGraph_ToJobs::operator()()
     70bool ExportGraph_ToJobs::operator()()
    7171{
    7272  std::vector<FragmentJob::ptr> jobs;
     
    131131  if (CurrentFragment == NULL) {
    132132    ELOG(1, "Some error while obtaining the next fragment occured.");
    133     return;
     133    return false;
    134134  }
    135135
    136136  // push final jobs
    137137  FragmentJobQueue::getInstance().addJobs(jobs, KeySets, FullKeySets);
     138
     139  return true;
    138140}
  • src/Fragmentation/Exporters/ExportGraph_ToJobs.hpp

    rc4abf2 rc24071  
    4444  virtual ~ExportGraph_ToJobs();
    4545
    46         void operator()();
     46        bool operator()();
    4747
    4848  /** Sets the level for the sampling of the density.
Note: See TracChangeset for help on using the changeset viewer.