Ignore:
Timestamp:
Apr 15, 2013, 10:28:25 AM (12 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, 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_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
503acc1
Parents:
4f44ae
git-author:
Frederik Heber <heber@…> (03/04/13 14:14:10)
git-committer:
Frederik Heber <heber@…> (04/15/13 10:28:25)
Message:

Outsourced parsing of fragment files into ParseFragmentJobsAction from FragmentationAutomationAction.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Fragmentation/Automation/FragmentJobQueue.cpp

    r4f44ae rbae7bc  
    4545
    4646#include "Box.hpp"
     47#include "Fragmentation/Automation/parseKeySetFile.hpp"
    4748#include "Helpers/defs.hpp"
    4849#include "Jobs/MPQCJob.hpp"
     
    8990}
    9091
     92bool FragmentJobQueue::addKeySetsFromFiles(
     93    const boost::filesystem::path &path,
     94    const size_t FragmentCounter,
     95    const enum KeySetFileType keysettype
     96    )
     97{
     98  const size_t NoJobs = KeySets.KeySets.size();
     99  parseKeySetFile(KeySets, path.string(), FragmentCounter, NonHydrogenKeySets);
     100  ASSERT( (KeySets.KeySets.size()-NoJobs) == FragmentCounter,
     101      "FragmentJobQueue::addKeySetsFromFiles() - mismatching number of new fragments "
     102      +toString(KeySets.KeySets.size()-NoJobs)+" and number of Keyset "
     103      +toString(FragmentCounter)+".");
     104  return (KeySets.KeySets.size() > NoJobs);
     105}
     106
     107bool FragmentJobQueue::addFullKeySetsFromFiles(
     108    const boost::filesystem::path &path,
     109    const size_t FragmentCounter,
     110    const enum KeySetFileType keysettype
     111    )
     112{
     113  const size_t NoJobs = FullKeySets.KeySets.size();
     114  parseKeySetFile(FullKeySets, path.string(), FragmentCounter, NonHydrogenKeySets);
     115  ASSERT( (FullKeySets.KeySets.size()-NoJobs) == FragmentCounter,
     116      "FragmentJobQueue::addKeySetsFromFiles() - mismatching number of fragments "
     117      +toString(FullKeySets.KeySets.size()-NoJobs)+" and number of FullKeyset "
     118      +toString(FragmentCounter)+".");
     119  return (FullKeySets.KeySets.size() > NoJobs);
     120}
     121
    91122void FragmentJobQueue::clear()
    92123{
Note: See TracChangeset for help on using the changeset viewer.