Ignore:
Timestamp:
Dec 10, 2012, 10:10:56 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:
de84ef
Parents:
758e56
git-author:
Frederik Heber <heber@…> (08/29/12 13:09:08)
git-committer:
Frederik Heber <heber@…> (12/10/12 10:10:56)
Message:

Added level and near_field_cells as options to FragmentationAutomationAction.

  • new options are grid-level and near-field-cells that allow setting the precision of the electron charge density sampling (and potentil calculation) and the smearing out of nuclei charge density on the command-line.
Location:
src/Fragmentation/Automation
Files:
4 edited

Legend:

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

    r758e56 r065574  
    4848#include "World.hpp"
    4949
    50 const int MPQCFragmentController::LEVEL = 5;
    51 
    5250bool MPQCFragmentController::addJobsFromFiles(
    5351    const std::string &executable,
     
    9896  ASSERT( M.determinant() == size*size*size,
    9997      "parsejob() - current domain matrix "+toString(M)+" is not cubic.");
    100   const int level = LEVEL;
    10198  FragmentJob::ptr testJob( new MPQCJob(nextid, output, begin, size, level) );
    10299  jobs.push_back(testJob);
  • src/Fragmentation/Automation/MPQCFragmentController.hpp

    r758e56 r065574  
    3434public:
    3535  MPQCFragmentController(boost::asio::io_service &io_service) :
    36     SpecificFragmentController(io_service)
     36    SpecificFragmentController(io_service),
     37    level(5)
    3738  {}
    3839  virtual ~MPQCFragmentController()
     
    4647  }
    4748
     49  void setLevel(const size_t _level) { level = _level; }
     50
    4851private:
    4952  void parsejob(
     
    5558private:
    5659  //!> resolution of sampled electron density as \f$2^{\text{level}}\f$
    57   static const int LEVEL;
     60  size_t level;
    5861};
    5962
  • src/Fragmentation/Automation/VMGFragmentController.cpp

    r758e56 r065574  
    5050    const std::map<JobId_t, MPQCData> &fragmentData,
    5151    const SamplingGrid &full_sampled_grid,
    52     const Fragment &full_fragment)
     52    const Fragment &full_fragment,
     53    const size_t near_field_cells)
    5354{
    5455  std::vector<FragmentJob::ptr> jobs;
     
    6263        << " gridpoints and " << data.charges.size() << " particle charges.");
    6364    FragmentJob::ptr testJob(
    64         new VMGJob(next_id, data.sampled_grid, data.positions, data.charges) );
     65        new VMGJob(next_id, data.sampled_grid, data.positions, data.charges, near_field_cells) );
    6566    jobs.push_back(testJob);
    6667  }
     
    8485        << " gridpoints and " << charges.size() << " particle charges.");
    8586    FragmentJob::ptr testJob(
    86         new VMGJob(next_id, full_sampled_grid, positions, charges) );
     87        new VMGJob(next_id, full_sampled_grid, positions, charges, near_field_cells) );
    8788    jobs.push_back(testJob);
    8889  }
  • src/Fragmentation/Automation/VMGFragmentController.hpp

    r758e56 r065574  
    3939      const std::map<JobId_t, MPQCData> &fragmentData,
    4040      const SamplingGrid &full_sampled_grid,
    41       const Fragment &full_fragment);
     41      const Fragment &full_fragment,
     42      const size_t near_field_cells);
    4243  void getResults(std::map<JobId_t, VMGData> &fragmentData) {
    4344    SpecificFragmentController::getResults<VMGData>(fragmentData);
Note: See TracChangeset for help on using the changeset viewer.