Changeset a700c4
- Timestamp:
- Apr 6, 2011, 1:50:41 PM (14 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:
- 8b9c43
- Parents:
- 3bfd78
- git-author:
- Frederik Heber <heber@…> (04/01/11 20:02:47)
- git-committer:
- Frederik Heber <heber@…> (04/06/11 13:50:41)
- Location:
- src
- Files:
-
- 2 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Exceptions/Makefile.am
r3bfd78 ra700c4 13 13 MathException.cpp \ 14 14 MissingValueException.cpp \ 15 NotInvertibleException.cpp \16 15 NotOnSurfaceException.cpp \ 17 16 ShapeException.cpp \ … … 26 25 MathException.hpp \ 27 26 MissingValueException.hpp \ 28 NotInvertibleException.hpp \29 27 NotOnSurfaceException.hpp \ 30 28 FormulaStringParseException.hpp \ -
src/LinearAlgebra/Exceptions.hpp
r3bfd78 ra700c4 23 23 /** ========================== General error information ================== */ 24 24 25 /** Exception information for SkewException: determinant that is not null.25 /** Exception information for LinearAlgebraException: determinant. 26 26 */ 27 typedef boost::error_info<struct tag_LinearAlgebraDeterminant, double> LinearAlgebraDeterminant; 28 /** Exception information for SkewException: determinant that is not null. 27 typedef boost::error_info<struct tag_LinearAlgebraDeterminant, const double> LinearAlgebraDeterminant; 28 29 /** Exception information for LinearAlgebraException: matrix. 29 30 */ 30 typedef boost::error_info<struct tag_LinearAlgebraMatrix, MatrixContent*> LinearAlgebraMatrix;31 typedef boost::error_info<struct tag_LinearAlgebraMatrix, const MatrixContent* const> LinearAlgebraMatrixContent; 31 32 32 33 /** ============================ Specific exceptions ====================== */ … … 36 37 struct SkewException : virtual LinearAlgebraException { }; 37 38 39 /** Exception thrown when are matrix is not invertiable, i.e. its determinant is NULL. 40 */ 41 struct NotInvertibleException : virtual LinearAlgebraException { }; 42 38 43 #endif /* EXCEPTIONS_HPP_ */ -
src/LinearAlgebra/Line.cpp
r3bfd78 ra700c4 136 136 if (fabs(M->Determinant()) > LINALG_MYEPSILON()) { 137 137 Log() << Verbose(1) << "Determinant of coefficient matrix is NOT zero." << endl; 138 throw SkewException() << LinearAlgebraDeterminant(M->Determinant()) << LinearAlgebraMatrix (&(*M));138 throw SkewException() << LinearAlgebraDeterminant(M->Determinant()) << LinearAlgebraMatrixContent(&(*M)); 139 139 } 140 140 -
src/LinearAlgebra/MatrixContent.cpp
r3bfd78 ra700c4 15 15 16 16 #include "CodePatterns/Assert.hpp" 17 #include "Exceptions/NotInvertibleException.hpp"18 17 #include "LinearAlgebra/defs.hpp" 19 18 #include "LinearAlgebra/fast_functions.hpp" -
src/LinearAlgebra/RealSpaceMatrix.cpp
r3bfd78 ra700c4 20 20 #include "CodePatterns/MemDebug.hpp" 21 21 22 #include "Exceptions/NotInvertibleException.hpp"23 22 #include "CodePatterns/Assert.hpp" 24 23 #include "LinearAlgebra/defs.hpp" 24 #include "LinearAlgebra/Exceptions.hpp" 25 25 #include "LinearAlgebra/fast_functions.hpp" 26 26 #include "LinearAlgebra/MatrixContent.hpp" … … 250 250 double det = determinant(); 251 251 if(fabs(det) <= LINALG_MYEPSILON()){ 252 throw NotInvertibleException( __FILE__,__LINE__);252 throw NotInvertibleException() << LinearAlgebraDeterminant(det) << LinearAlgebraMatrixContent(this->content); 253 253 } 254 254 -
src/LinearAlgebra/unittests/MatrixUnitTest.cpp
r3bfd78 ra700c4 27 27 #include "MatrixUnitTest.hpp" 28 28 29 #include "Exceptions/NotInvertibleException.hpp"30 29 #include "LinearAlgebra/defs.hpp" 30 #include "LinearAlgebra/Exceptions.hpp" 31 31 #include "LinearAlgebra/RealSpaceMatrix.hpp" 32 32 #include "LinearAlgebra/Vector.hpp"
Note:
See TracChangeset
for help on using the changeset viewer.