Changeset 9ff818 for src/Fragmentation/Summation/Containers
- Timestamp:
- May 18, 2016, 9:55:40 PM (9 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, 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_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, 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:
- f0dea0
- Parents:
- a9099d
- git-author:
- Frederik Heber <heber@…> (03/03/16 00:09:17)
- git-committer:
- Frederik Heber <heber@…> (05/18/16 21:55:40)
- Location:
- src/Fragmentation/Summation/Containers
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Fragmentation/Summation/Containers/MPQCData.cpp
ra9099d r9ff818 47 47 DoLongrange(DontSampleDensity), 48 48 DoValenceOnly(DoSampleValenceOnly), 49 sampled_grid(_props) 49 sampled_grid(_props), 50 accuracy(0.), 51 desired_accuracy(0.) 50 52 {} 51 53 52 54 MPQCData::MPQCData() : 53 55 DoLongrange(DontSampleDensity), 54 DoValenceOnly(DoSampleValenceOnly) 56 DoValenceOnly(DoSampleValenceOnly), 57 accuracy(0.), 58 desired_accuracy(0.) 55 59 {} 56 60 … … 107 111 ost << "Times: " << data.times.total_walltime << ", " 108 112 << data.times.total_cputime << ", " 109 << data.times.total_flops; 113 << data.times.total_flops << ", "; 114 ost << "Accuracy: " << data.accuracy << "\t"; 115 ost << "Desired accuracy: " << data.desired_accuracy << "\t"; 110 116 return ost; 111 117 } -
src/Fragmentation/Summation/Containers/MPQCData.hpp
ra9099d r9ff818 116 116 } times; 117 117 118 //!> reached (relative) accuracy 119 double accuracy; 120 //!> desired accuracy 121 double desired_accuracy; 122 118 123 private: 119 124 friend class boost::serialization::access; … … 149 154 ar & times.gather_cputime; 150 155 ar & times.gather_flops; 156 if (version > 2) { 157 ar & accuracy; 158 ar & desired_accuracy; 159 } 151 160 } 152 161 }; 153 162 154 BOOST_CLASS_VERSION(MPQCData, 2)163 BOOST_CLASS_VERSION(MPQCData, 3) 155 164 156 165 std::ostream & operator<<(std::ostream &ost, const MPQCData &data); -
src/Fragmentation/Summation/Containers/VMGData.cpp
ra9099d r9ff818 45 45 nuclei_long(0.), 46 46 electron_long(0.), 47 hasForces(false) 47 hasForces(false), 48 relative_residual(0.), 49 precision(0.) 48 50 {} 49 51 50 VMGData::VMGData() 52 VMGData::VMGData() : 53 nuclei_long(0.), 54 electron_long(0.), 55 hasForces(false), 56 relative_residual(0.), 57 precision(0.) 51 58 {} 52 59 … … 56 63 ost << "Electron long-Range energy: " << data.electron_long << std::endl; 57 64 ost << "Nuclei long-Range forces: " << data.forces << std::endl; 65 ost << "Relative residual: " << data.relative_residual << std::endl; 66 ost << "Desired precision: " << data.precision << std::endl; 58 67 return ost; 59 68 } -
src/Fragmentation/Summation/Containers/VMGData.hpp
ra9099d r9ff818 55 55 bool hasForces; 56 56 57 //!> relative residual 58 double relative_residual; 59 //!> desired precision 60 double precision; 61 57 62 private: 58 63 friend class boost::serialization::access; … … 72 77 } else 73 78 hasForces = false; 79 if (version > 3) { 80 ar & relative_residual; 81 ar & precision; 82 } 74 83 } 75 84 }; 76 85 77 BOOST_CLASS_VERSION(VMGData, 3)86 BOOST_CLASS_VERSION(VMGData, 4) 78 87 79 88 std::ostream & operator<<(std::ostream &ost, const VMGData &data);
Note:
See TracChangeset
for help on using the changeset viewer.