Changeset 019b96


Ignore:
Timestamp:
Sep 17, 2014, 10:34:02 PM (11 years ago)
Author:
Frederik Heber <heber@…>
Children:
67a9d5
Parents:
365a44
git-author:
Frederik Heber <heber@…> (05/22/14 16:19:40)
git-committer:
Frederik Heber <heber@…> (09/17/14 22:34:02)
Message:

SystemCommandJob now allows for resetting the command in derived classes.

  • command is just protected.
  • MPQCCommandJob::resetCommand() allows overwrite to MPQCCommandFragmentController.
  • MPQCCommandFragmentController::addJobsFromQueue() allows setting of new command.
  • FragmentationAutomationAction::performCalls() sets params.executable.
Location:
src
Files:
4 edited

Legend:

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

    r365a44 r019b96  
    171171    // Phase Two: add MPQCJobs and send
    172172    const size_t NoJobs = mpqccontroller.addJobsFromQueue(
     173        params.executable.get().string(),
    173174        params.DoLongrange.get() ? MPQCData::DoSampleDensity : MPQCData::DontSampleDensity,
    174175        params.DoValenceOnly.get() ? MPQCData::DoSampleValenceOnly : MPQCData::DontSampleValenceOnly,
  • src/Fragmentation/Automation/MPQCCommandFragmentController.cpp

    r365a44 r019b96  
    6060
    6161bool MPQCCommandFragmentController::addJobsFromQueue(
     62    const std::string _command,
    6263    const MPQCData::DoLongrange_t _DoLongrange,
    6364    const MPQCData::DoValenceOnly_t _DoValenceOnly,
     
    7172      ++jobiter) {
    7273    MPQCCommandJob *job = boost::polymorphic_downcast<MPQCCommandJob *>(jobiter->get());
     74    job->resetCommand(_command);
    7375//    job->DoLongrange = _DoLongrange;
    7476//    job->DoValenceOnly = _DoValenceOnly;
  • src/Fragmentation/Automation/MPQCCommandFragmentController.hpp

    r365a44 r019b96  
    5050  /** Command Controller to fill its hold of jobs from FragmentJobQueue.
    5151   *
     52   * \param _command command to execute
    5253   * \param _DoSampleDensity whether to actually sample the resulting electronic density
    5354   * \param _DoValenceOnly whether to sample just the valence or the total elctron and nuclei density
     
    5657   */
    5758  bool addJobsFromQueue(
     59      const std::string _command,
    5860      const MPQCData::DoLongrange_t _DoLongrange,
    5961      const MPQCData::DoValenceOnly_t _DoValenceOnly,
  • src/Jobs/MPQCCommandJob.hpp

    r365a44 r019b96  
    5151
    5252private:
     53  friend class MPQCCommandFragmentController;
    5354  //!> Allow controller access to changing the commands
    5455  void setCommand(const std::string &_command)
     
    5960  { suffix = _suffix; }
    6061
     62private:
    6163  //!> private default cstor only for serializatio
    6264  MPQCCommandJob();
Note: See TracChangeset for help on using the changeset viewer.