- Timestamp:
- Nov 20, 2012, 11:04:12 AM (12 years ago)
- 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. - Location:
- src/Jobs
- Files:
-
- 16 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Jobs/MPQCData.cpp
rcebac0 r36bb2d 42 42 #include "CodePatterns/Log.hpp" 43 43 #include "LinearAlgebra/defs.hpp" 44 45 MPQCData::MPQCData(const SamplingGridProperties &_props) : 46 sampled_grid(_props) 47 {} 48 49 MPQCData::MPQCData() 50 {} 44 51 45 52 MPQCData::energy_t::energy_t() : -
src/Jobs/MPQCData.hpp
rcebac0 r36bb2d 20 20 #include <vector> 21 21 22 #include "Jobs/Grid/SamplingGrid.hpp" 23 22 24 class MPQCCommandJob; 23 25 class MPQCCommandJobTest; … … 37 39 friend std::ostream & operator<<(std::ostream &ost, const MPQCData &data); 38 40 public: 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 39 52 bool operator==(const MPQCData &other) const; 40 53 … … 66 79 std::vector< vector_type > forces; 67 80 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 68 88 /// Timing structure 69 89 struct times_t { … … 94 114 ar & energies.eigenvalues; 95 115 ar & forces; 116 ar & sampled_grid; 117 ar & positions; 118 ar & charges; 96 119 ar & times.walltime; 97 120 ar & times.cputime; -
src/Jobs/MPQCDataFused.hpp
rcebac0 r36bb2d 37 37 struct forces {}; 38 38 39 // keys for sampled_grid 40 struct sampled_grid {}; 41 39 42 // keys for times_t 40 43 struct times_walltime {}; -
src/Jobs/MPQCDataMap.hpp
rcebac0 r36bb2d 21 21 class Histogram; 22 22 class IndexedVectors; 23 class SamplingGrid; 23 24 24 25 /// \note: We had to split up the map because boost::fusion only allows for … … 72 73 73 74 /** 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 */ 81 typedef boost::fusion::map< 82 boost::fusion::pair<MPQCDataFused::sampled_grid, SamplingGrid > 83 > MPQCDataGridMap_t; 84 85 typedef 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 74 90 * which we associate all times_t data members in MPQCData and their type. 75 91 * -
src/Jobs/MPQCData_printKeyNames.hpp
rcebac0 r36bb2d 40 40 (energy_eigenvalues) \ 41 41 (forces) \ 42 (sampled_grid) \ 42 43 (times_walltime) \ 43 44 (times_cputime) \ -
src/Jobs/MPQCJob.cpp
rcebac0 r36bb2d 46 46 #include <sstream> 47 47 48 MPQCJob::MPQCJob(const JobId_t _JobId, const std::string &_inputfile) : 48 MPQCJob::MPQCJob( 49 const JobId_t _JobId, 50 const std::string &_inputfile, 51 const double _begin[3], 52 const double _size, 53 const int _level) : 49 54 FragmentJob(_JobId), 50 inputfile(_inputfile) 55 inputfile(_inputfile), 56 grid(_begin, _size, _level) 51 57 {} 52 58 -
src/Jobs/MPQCJob.hpp
rcebac0 r36bb2d 19 19 #include "JobMarket/Jobs/FragmentJob.hpp" 20 20 21 #include "Jobs/Grid/SamplingGridProperties.hpp" 22 21 23 #include <string> 22 24 … … 27 29 { 28 30 public: 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); 30 37 virtual ~MPQCJob(); 31 38 … … 33 40 34 41 private: 35 //!> contents of the inputfile42 //!> contents of inputfile 36 43 const std::string inputfile; 44 //!> information for how to sample the density 45 const SamplingGridProperties grid; 37 46 38 47 private: … … 48 57 ar & boost::serialization::base_object<FragmentJob>(*this); 49 58 ar & const_cast<std::string &>(inputfile); 59 ar & const_cast<SamplingGridProperties &>(grid); 50 60 } 51 61 }; -
src/Jobs/Makefile.am
rcebac0 r36bb2d 6 6 Jobs/MPQCData.cpp \ 7 7 Jobs/MPQCJob.cpp 8 if CONDVMG 9 JOBSSOURCE += \ 10 Jobs/InterfaceVMGJob.cpp \ 11 Jobs/VMGData.cpp \ 12 Jobs/VMGJob.cpp 13 endif 8 14 9 15 JOBSHEADER = \ … … 14 20 Jobs/MPQCData_printKeyNames.hpp \ 15 21 Jobs/MPQCJob.hpp 22 if CONDVMG 23 JOBSHEADER += \ 24 Jobs/InterfaceVMGJob.hpp \ 25 Jobs/VMGData.hpp \ 26 Jobs/VMGJob.hpp 27 endif 16 28 17 29 lib_LTLIBRARIES += libMolecuilderJobs.la 18 30 libMolecuilderJobs_la_includedir = $(includedir)/MoleCuilder/ 19 31 nobase_libMolecuilderJobs_la_include_HEADERS = $(JOBSHEADER) 20 libMolecuilderJobs_la_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} ${JobMarket_CFLAGS} 32 libMolecuilderJobs_la_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} ${JobMarket_CFLAGS} -Dvmg_float=double -Dvmg_int=int $(VMG_CFLAGS) 21 33 libMolecuilderJobs_la_LDFLAGS = $(AM_LDFLAGS) \ 22 34 $(BOOST_SERIALIZATION_LDFLAGS) \ 35 $(BOOST_SYSTEM_LDFLAGS) \ 23 36 $(JobMarket_LDFLAGS) \ 24 37 $(CodePatterns_LDFLAGS) 25 38 libMolecuilderJobs_la_SOURCES = $(JOBSSOURCE) 26 39 libMolecuilderJobs_la_LIBADD = \ 27 $(JobMarket_LIBS) \ 40 libMolecuilderJobsGrid.la \ 41 $(VMG_LIBS) \ 42 $(JobMarket_LIBS) \ 28 43 $(BOOST_SERIALIZATION_LIBS) \ 29 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \ 44 $(BOOST_SYSTEM_LIBS) \ 45 $(top_builddir)/LinearAlgebra/src/LinearAlgebra/libLinearAlgebra.la \ 30 46 $(CodePatterns_LIBS) 31 47 if CONDVMGMPI 48 libMolecuilderJobs_la_CPPFLAGS += $(MPI_CXXFLAGS) 49 libMolecuilderJobs_la_LDFLAGS += $(MPI_CXXLDFLAGS) 50 endif 51
Note:
See TracChangeset
for help on using the changeset viewer.