- Timestamp:
- Jul 13, 2014, 7:41:15 AM (11 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:
- d6a7b9
- Parents:
- 2e584e
- git-author:
- Frederik Heber <heber@…> (07/07/14 20:43:47)
- git-committer:
- Frederik Heber <heber@…> (07/13/14 07:41:15)
- Location:
- src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/FragmentationAction/AnalyseFragmentationResultsAction.cpp
r2e584e r18ed8c 63 63 #include "Descriptors/AtomIdDescriptor.hpp" 64 64 #include "Fragmentation/Summation/Containers/FragmentationChargeDensity.hpp" 65 #include "Fragmentation/Summation/Containers/FragmentationLongRangeResults.hpp"66 65 #include "Fragmentation/Summation/Containers/FragmentationResultContainer.hpp" 67 66 #include "Fragmentation/Summation/Containers/FragmentationShortRangeResults.hpp" … … 78 77 #include "Fragmentation/Summation/writeIndexedTable.hpp" 79 78 #include "Fragmentation/Summation/writeTable.hpp" 80 #ifdef HAVE_VMG 79 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 80 #include "Fragmentation/Summation/Containers/FragmentationLongRangeResults.hpp" 81 81 #include "Fragmentation/Summation/Containers/VMGData.hpp" 82 82 #include "Fragmentation/Summation/Containers/VMGDataFused.hpp" … … 232 232 233 233 234 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 234 235 /** Print long range energy from received results. 235 236 * … … 261 262 } 262 263 } 264 #endif 263 265 264 266 void appendToHomologies( 265 267 const FragmentationShortRangeResults &shortrangeresults, 268 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 266 269 const FragmentationLongRangeResults &longrangeresults, 270 #endif 267 271 const bool storeGrids 268 272 ) … … 311 315 // only store sampled grids if desired 312 316 if (storeGrids) { 317 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 313 318 // obtain charge distribution 314 319 std::map<IndexSet::ptr, std::pair< MPQCDataGridMap_t, MPQCDataGridMap_t> >::const_iterator chargeiter … … 338 343 // ++iter) 339 344 // *iter -= offset; 345 #else 346 ELOG(1, "Long-range information in homology desired but long-range analysis capability not compiled in."); 347 #endif 340 348 } 341 349 values.insert( std::make_pair( graph, value) ); … … 362 370 << ", associated energy " << iter->second.energy; 363 371 if (iter->second.containsGrids) 372 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 364 373 output << ", and sampled grid integral " << iter->second.charge_distribution.integral(); 374 #else 375 output << ", and there are sampled grids but capability not compiled in"; 376 #endif 365 377 output << "."; 366 378 LOG(2, output.str()); … … 610 622 } 611 623 612 #if def HAVE_VMG624 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 613 625 if (DoLongrange) { 614 626 if ( World::getInstance().getAllAtoms().size() == 0) { … … 651 663 } 652 664 #else 653 if (DoLongrange) 665 if (DoLongrange) { 654 666 ELOG(2, "File contains long-range information but long-range analysis capability not compiled in."); 667 } 655 668 656 669 // append all keysets to homology file with short-range info only (without grids) 657 { 658 std::map<JobId_t, VMGData> longrangeData; 659 FragmentationLongRangeResults longrangeresults( 660 shortrangedata,longrangeData,keysets, forcekeysets); 661 appendToHomologies(shortrangeresults, longrangeresults, false); 662 } 670 appendToHomologies(shortrangeresults, false); 663 671 #endif 664 672 -
src/Actions/FragmentationAction/FragmentationAutomationAction.cpp
r2e584e r18ed8c 72 72 #include "Fragmentation/Summation/Containers/MPQCData.hpp" 73 73 #include "Fragmentation/KeySetsContainer.hpp" 74 #if def HAVE_VMG74 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 75 75 #include "Fragmentation/Automation/VMGDebugGridFragmentController.hpp" 76 76 #include "Fragmentation/Automation/VMGFragmentController.hpp" … … 184 184 #endif 185 185 186 #if def HAVE_VMG186 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 187 187 if (params.DoLongrange.get()) { 188 188 if ( World::getInstance().getAllAtoms().size() == 0) { -
src/Fragmentation/Automation/Makefile.am
r2e584e r18ed8c 10 10 Fragmentation/Automation/MPQCFragmentController.cpp \ 11 11 Fragmentation/Automation/SpecificFragmentController.cpp 12 endif13 12 14 13 if CONDVMG … … 16 15 Fragmentation/Automation/VMGDebugGridFragmentController.cpp \ 17 16 Fragmentation/Automation/VMGFragmentController.cpp 17 endif 18 18 19 endif 19 20 … … 29 30 Fragmentation/Automation/SpecificFragmentController.hpp \ 30 31 Fragmentation/Automation/SpecificFragmentController_ReceiveResultContainer_impl.hpp 31 endif32 32 33 33 if CONDVMG … … 35 35 Fragmentation/Automation/VMGDebugGridFragmentController.hpp \ 36 36 Fragmentation/Automation/VMGFragmentController.hpp 37 endif 37 38 endif 38 39 -
src/Fragmentation/Summation/Containers/FragmentationResultContainer.cpp
r2e584e r18ed8c 41 41 #include "CodePatterns/Singleton_impl.hpp" 42 42 43 #if def HAVE_VMG43 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 44 44 void FragmentationResultContainer::addFullResults( 45 45 const KeySetsContainer &_keysets, … … 51 51 OBSERVE; 52 52 ASSERT( ResultsType == BothRanges, 53 "FragmentationResultContainer:: getLongRangeResults() - mixing full and short range is not in the cards.");53 "FragmentationResultContainer::addFullResults() - mixing full and short range is not in the cards."); 54 54 ASSERT( _keysets.KeySets.size() == _forcekeysets.KeySets.size(), 55 55 "FragmentationResultContainer::addFullResults() - keysets (" … … 80 80 OBSERVE; 81 81 ASSERT( (ResultsType == ShortRangeOnly) || (keysets.KeySets.empty()) , 82 "FragmentationResultContainer:: getLongRangeResults() - mixing full and short range is not in the cards.");82 "FragmentationResultContainer::addFullResults() - mixing full and short range is not in the cards."); 83 83 ASSERT( _keysets.KeySets.size() == _forcekeysets.KeySets.size(), 84 84 "FragmentationResultContainer::addFullResults() - keysets (" … … 104 104 } 105 105 106 #if def HAVE_VMG106 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 107 107 const FragmentationResultContainer::longrangedata_t& 108 108 FragmentationResultContainer::getLongRangeResults() const -
src/Fragmentation/Summation/Containers/FragmentationResultContainer.hpp
r2e584e r18ed8c 36 36 #include "Fragmentation/Summation/Containers/MPQCData.hpp" 37 37 #include "Fragmentation/Summation/Containers/MPQCDataMap.hpp" 38 #if def HAVE_VMG38 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 39 39 #include "Fragmentation/Summation/Containers/VMGData.hpp" 40 40 #endif … … 63 63 //!> typedef for short range data container 64 64 typedef std::map<JobId_t, MPQCData> shortrangedata_t; 65 #if def HAVE_VMG65 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 66 66 //!> typedef for long range data container 67 67 typedef std::map<JobId_t, VMGData> longrangedata_t; 68 68 #endif 69 69 70 #if def HAVE_VMG70 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 71 71 /** Adds a a set of both short and long range results. 72 72 * … … 128 128 shortrangedata.clear(); 129 129 summedshortrange.clear(); 130 #if def HAVE_VMG130 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 131 131 longrangedata.clear(); 132 132 #endif … … 139 139 const shortrangedata_t& getShortRangeResults() const { return shortrangedata; } 140 140 const FragmentationShortRangeResults::summedshortrange_t& getShortRangeSummedResults() const { return summedshortrange; } 141 #if def HAVE_VMG141 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 142 142 const longrangedata_t& getLongRangeResults() const; 143 143 #endif … … 162 162 FragmentationShortRangeResults::summedshortrange_t summedshortrange; 163 163 164 #if def HAVE_VMG164 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 165 165 //!> container for all long-range results 166 166 std::map<JobId_t, VMGData> longrangedata; … … 181 181 if (version > 1) 182 182 ar & summedshortrange; 183 #if def HAVE_VMG183 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 184 184 ar & longrangedata; 185 185 #endif … … 196 196 if (version > 1) 197 197 ar & summedshortrange; 198 #if def HAVE_VMG198 #if defined(HAVE_JOBMARKET) && defined(HAVE_VMG) 199 199 ar & longrangedata; 200 200 #endif -
src/Fragmentation/Summation/Containers/Makefile.am
r2e584e r18ed8c 5 5 Fragmentation/Summation/Containers/createMatrixNrLookup.cpp \ 6 6 Fragmentation/Summation/Containers/FragmentationChargeDensity.cpp \ 7 Fragmentation/Summation/Containers/FragmentationLongRangeResults.cpp \8 7 Fragmentation/Summation/Containers/FragmentationResultContainer.cpp \ 9 8 Fragmentation/Summation/Containers/FragmentationShortRangeResults.cpp \ 10 9 Fragmentation/Summation/Containers/MPQCData.cpp 11 10 11 if CONDJOBMARKET 12 12 if CONDVMG 13 13 FRAGMENTATIONCONTAINERSOURCE += \ 14 Fragmentation/Summation/Containers/FragmentationLongRangeResults.cpp \ 14 15 Fragmentation/Summation/Containers/VMGData.cpp 16 endif 15 17 endif 16 18 … … 19 21 Fragmentation/Summation/Containers/extractJobIds.hpp \ 20 22 Fragmentation/Summation/Containers/FragmentationChargeDensity.hpp \ 21 Fragmentation/Summation/Containers/FragmentationLongRangeResults.hpp \22 23 Fragmentation/Summation/Containers/FragmentationResultContainer.hpp \ 23 24 Fragmentation/Summation/Containers/FragmentationShortRangeResults.hpp \ … … 26 27 Fragmentation/Summation/Containers/MPQCDataMap.hpp \ 27 28 Fragmentation/Summation/Containers/MPQCData_printKeyNames.hpp 28 29 30 if CONDJOBMARKET 29 31 if CONDVMG 30 32 FRAGMENTATIONCONTAINERHEADER += \ 33 Fragmentation/Summation/Containers/FragmentationLongRangeResults.hpp \ 31 34 Fragmentation/Summation/Containers/VMGData.hpp \ 32 35 Fragmentation/Summation/Containers/VMGDataFused.hpp \ 33 36 Fragmentation/Summation/Containers/VMGDataMap.hpp \ 34 37 Fragmentation/Summation/Containers/VMGData_printKeyNames.hpp 38 endif 35 39 endif 36 40 -
src/Jobs/Makefile.am
r2e584e r18ed8c 3 3 4 4 JOBSSOURCE = 5 if 5 if CONDJOBMARKET 6 6 else 7 7 JOBSSOURCE += \ … … 14 14 Jobs/MPQCCommandJob.cpp \ 15 15 Jobs/MPQCJob.cpp 16 if CONDJOBMARKET 16 17 if CONDVMG 17 18 JOBSSOURCE += \ … … 21 22 Jobs/VMGJob.cpp \ 22 23 Jobs/WindowGrid_converter.cpp 24 endif 23 25 endif 24 26 … … 38 40 Jobs/MPQCJob.hpp \ 39 41 Jobs/MPQCJob_binding.hpp 42 if CONDJOBMARKET 40 43 if CONDVMG 41 44 JOBSHEADER += \ … … 47 50 Jobs/VMGJob_binding.hpp \ 48 51 Jobs/WindowGrid_converter.hpp 52 endif 49 53 endif 50 54 … … 66 70 libMolecuilderJobs_la_LIBADD = \ 67 71 libMolecuilderFragmentationSummation.la 72 if CONDJOBMARKET 68 73 if CONDVMG 69 74 libMolecuilderJobs_la_LIBADD += \ 70 75 $(VMG_LIBS) 76 endif 71 77 endif 72 78
Note:
See TracChangeset
for help on using the changeset viewer.