Changeset 36bb2d for src/Jobs


Ignore:
Timestamp:
Nov 20, 2012, 11:04:12 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:
a22e05
Parents:
cebac0 (diff), a1436b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'VMGJob_SamplingNucleiCharges' into Candidate_v1.3.5

Location:
src/Jobs
Files:
16 added
8 edited

Legend:

Unmodified
Added
Removed
  • src/Jobs/MPQCData.cpp

    rcebac0 r36bb2d  
    4242#include "CodePatterns/Log.hpp"
    4343#include "LinearAlgebra/defs.hpp"
     44
     45MPQCData::MPQCData(const SamplingGridProperties &_props) :
     46  sampled_grid(_props)
     47{}
     48
     49MPQCData::MPQCData()
     50{}
    4451
    4552MPQCData::energy_t::energy_t() :
  • src/Jobs/MPQCData.hpp

    rcebac0 r36bb2d  
    2020#include <vector>
    2121
     22#include "Jobs/Grid/SamplingGrid.hpp"
     23
    2224class MPQCCommandJob;
    2325class MPQCCommandJobTest;
     
    3739  friend std::ostream & operator<<(std::ostream &ost, const MPQCData &data);
    3840public:
     41  /** Constructor for class MPQCData with full sampling information.
     42   *
     43   * \param _props properties of the grid
     44   */
     45  MPQCData(const SamplingGridProperties &_props);
     46
     47  /** Default Constructor for class MPQCData.
     48   *
     49   */
     50  MPQCData();
     51
    3952  bool operator==(const MPQCData &other) const;
    4053
     
    6679  std::vector< vector_type  > forces;
    6780
     81  /// Density
     82  SamplingGrid sampled_grid;
     83
     84  // nuclei positions and charges
     85  std::vector< std::vector<double> > positions;
     86  std::vector<double> charges;
     87
    6888  /// Timing structure
    6989  struct times_t {
     
    94114    ar & energies.eigenvalues;
    95115    ar & forces;
     116    ar & sampled_grid;
     117    ar & positions;
     118    ar & charges;
    96119    ar & times.walltime;
    97120    ar & times.cputime;
  • src/Jobs/MPQCDataFused.hpp

    rcebac0 r36bb2d  
    3737  struct forces {};
    3838
     39  // keys for sampled_grid
     40  struct sampled_grid {};
     41
    3942  // keys for times_t
    4043  struct times_walltime {};
  • src/Jobs/MPQCDataMap.hpp

    rcebac0 r36bb2d  
    2121class Histogram;
    2222class IndexedVectors;
     23class SamplingGrid;
    2324
    2425/// \note: We had to split up the map because boost::fusion only allows for
     
    7273
    7374/** This boost::fusion map defines key-value or rather key-type pairs with
     75 * which we associate all sampled_grid data members in MPQCData and their type.
     76 *
     77 * This lets us resolves any ambiguitites of types in MPQCData, e.g.
     78 * to know vector<double> is forces or energy_eigenvalues.
     79 *
     80 */
     81typedef boost::fusion::map<
     82    boost::fusion::pair<MPQCDataFused::sampled_grid, SamplingGrid >
     83> MPQCDataGridMap_t;
     84
     85typedef boost::mpl::list<
     86    MPQCDataFused::sampled_grid
     87> MPQCDataGridVector_t;
     88
     89/** This boost::fusion map defines key-value or rather key-type pairs with
    7490 * which we associate all times_t data members in MPQCData and their type.
    7591 *
  • src/Jobs/MPQCData_printKeyNames.hpp

    rcebac0 r36bb2d  
    4040        (energy_eigenvalues) \
    4141        (forces) \
     42        (sampled_grid) \
    4243        (times_walltime) \
    4344        (times_cputime) \
  • src/Jobs/MPQCJob.cpp

    rcebac0 r36bb2d  
    4646#include <sstream>
    4747
    48 MPQCJob::MPQCJob(const JobId_t _JobId, const std::string &_inputfile) :
     48MPQCJob::MPQCJob(
     49    const JobId_t _JobId,
     50    const std::string &_inputfile,
     51    const double _begin[3],
     52    const double _size,
     53    const int _level) :
    4954  FragmentJob(_JobId),
    50   inputfile(_inputfile)
     55  inputfile(_inputfile),
     56  grid(_begin, _size, _level)
    5157{}
    5258
  • src/Jobs/MPQCJob.hpp

    rcebac0 r36bb2d  
    1919#include "JobMarket/Jobs/FragmentJob.hpp"
    2020
     21#include "Jobs/Grid/SamplingGridProperties.hpp"
     22
    2123#include <string>
    2224
     
    2729{
    2830public:
    29   MPQCJob(const JobId_t _JobId, const std::string &_inputfile);
     31  MPQCJob(
     32      const JobId_t _JobId,
     33      const std::string &_inputfile,
     34      const double _begin[3],
     35      const double _size,
     36      const int _level);
    3037  virtual ~MPQCJob();
    3138
     
    3340
    3441private:
    35   //!> contents of the input file
     42  //!> contents of inputfile
    3643  const std::string inputfile;
     44  //!> information for how to sample the density
     45  const SamplingGridProperties grid;
    3746
    3847private:
     
    4857    ar & boost::serialization::base_object<FragmentJob>(*this);
    4958    ar & const_cast<std::string &>(inputfile);
     59    ar & const_cast<SamplingGridProperties &>(grid);
    5060  }
    5161};
  • src/Jobs/Makefile.am

    rcebac0 r36bb2d  
    66        Jobs/MPQCData.cpp \
    77        Jobs/MPQCJob.cpp
     8if CONDVMG
     9JOBSSOURCE += \
     10        Jobs/InterfaceVMGJob.cpp \
     11        Jobs/VMGData.cpp \
     12        Jobs/VMGJob.cpp
     13endif
    814
    915JOBSHEADER = \
     
    1420        Jobs/MPQCData_printKeyNames.hpp \
    1521        Jobs/MPQCJob.hpp
     22if CONDVMG
     23JOBSHEADER += \
     24        Jobs/InterfaceVMGJob.hpp \
     25        Jobs/VMGData.hpp \
     26        Jobs/VMGJob.hpp
     27endif
    1628
    1729lib_LTLIBRARIES += libMolecuilderJobs.la
    1830libMolecuilderJobs_la_includedir = $(includedir)/MoleCuilder/
    1931nobase_libMolecuilderJobs_la_include_HEADERS = $(JOBSHEADER)
    20 libMolecuilderJobs_la_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} ${JobMarket_CFLAGS}
     32libMolecuilderJobs_la_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} ${JobMarket_CFLAGS} -Dvmg_float=double -Dvmg_int=int $(VMG_CFLAGS)
    2133libMolecuilderJobs_la_LDFLAGS = $(AM_LDFLAGS) \
    2234  $(BOOST_SERIALIZATION_LDFLAGS) \
     35  $(BOOST_SYSTEM_LDFLAGS) \
    2336  $(JobMarket_LDFLAGS) \
    2437  $(CodePatterns_LDFLAGS)
    2538libMolecuilderJobs_la_SOURCES = $(JOBSSOURCE)
    2639libMolecuilderJobs_la_LIBADD = \
    27         $(JobMarket_LIBS) \
     40  libMolecuilderJobsGrid.la \
     41  $(VMG_LIBS) \
     42  $(JobMarket_LIBS) \
    2843  $(BOOST_SERIALIZATION_LIBS) \
    29         $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
     44  $(BOOST_SYSTEM_LIBS) \
     45  $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \
    3046  $(CodePatterns_LIBS)
    31 
     47if CONDVMGMPI
     48libMolecuilderJobs_la_CPPFLAGS += $(MPI_CXXFLAGS)
     49libMolecuilderJobs_la_LDFLAGS += $(MPI_CXXLDFLAGS)
     50endif
     51 
Note: See TracChangeset for help on using the changeset viewer.