Ignore:
Timestamp:
May 18, 2016, 9:55:40 PM (9 years ago)
Author:
Frederik Heber <heber@…>
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)
Message:

MPQCJob and VMGJob contain reached and desired accuracy.

  • both set exitflag to 1 if desired accuracy has not been reached.
Location:
src/Fragmentation/Summation/Containers
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/Fragmentation/Summation/Containers/MPQCData.cpp

    ra9099d r9ff818  
    4747  DoLongrange(DontSampleDensity),
    4848  DoValenceOnly(DoSampleValenceOnly),
    49   sampled_grid(_props)
     49  sampled_grid(_props),
     50  accuracy(0.),
     51  desired_accuracy(0.)
    5052{}
    5153
    5254MPQCData::MPQCData() :
    5355  DoLongrange(DontSampleDensity),
    54   DoValenceOnly(DoSampleValenceOnly)
     56  DoValenceOnly(DoSampleValenceOnly),
     57  accuracy(0.),
     58  desired_accuracy(0.)
    5559{}
    5660
     
    107111  ost << "Times: " << data.times.total_walltime << ", "
    108112      << 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";
    110116  return ost;
    111117}
  • src/Fragmentation/Summation/Containers/MPQCData.hpp

    ra9099d r9ff818  
    116116  } times;
    117117
     118  //!> reached (relative) accuracy
     119  double accuracy;
     120  //!> desired accuracy
     121  double desired_accuracy;
     122
    118123private:
    119124  friend class boost::serialization::access;
     
    149154    ar & times.gather_cputime;
    150155    ar & times.gather_flops;
     156    if (version > 2) {
     157      ar & accuracy;
     158      ar & desired_accuracy;
     159    }
    151160  }
    152161};
    153162
    154 BOOST_CLASS_VERSION(MPQCData, 2)
     163BOOST_CLASS_VERSION(MPQCData, 3)
    155164
    156165std::ostream & operator<<(std::ostream &ost, const MPQCData &data);
  • src/Fragmentation/Summation/Containers/VMGData.cpp

    ra9099d r9ff818  
    4545  nuclei_long(0.),
    4646  electron_long(0.),
    47   hasForces(false)
     47  hasForces(false),
     48  relative_residual(0.),
     49  precision(0.)
    4850{}
    4951
    50 VMGData::VMGData()
     52VMGData::VMGData() :
     53    nuclei_long(0.),
     54    electron_long(0.),
     55    hasForces(false),
     56    relative_residual(0.),
     57    precision(0.)
    5158{}
    5259
     
    5663  ost << "Electron long-Range energy: " << data.electron_long << std::endl;
    5764  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;
    5867  return ost;
    5968}
  • src/Fragmentation/Summation/Containers/VMGData.hpp

    ra9099d r9ff818  
    5555  bool hasForces;
    5656
     57  //!> relative residual
     58  double relative_residual;
     59  //!> desired precision
     60  double precision;
     61
    5762private:
    5863  friend class boost::serialization::access;
     
    7277    } else
    7378      hasForces = false;
     79    if (version > 3) {
     80      ar & relative_residual;
     81      ar & precision;
     82    }
    7483  }
    7584};
    7685
    77 BOOST_CLASS_VERSION(VMGData, 3)
     86BOOST_CLASS_VERSION(VMGData, 4)
    7887
    7988std::ostream & operator<<(std::ostream &ost, const VMGData &data);
Note: See TracChangeset for help on using the changeset viewer.