Changeset a700c4


Ignore:
Timestamp:
Apr 6, 2011, 1:50:41 PM (14 years ago)
Author:
Frederik Heber <heber@…>
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)
Message:

Removed Exceptions/NotInvertibleException.

Location:
src
Files:
2 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • src/Exceptions/Makefile.am

    r3bfd78 ra700c4  
    1313  MathException.cpp \
    1414  MissingValueException.cpp \
    15   NotInvertibleException.cpp \
    1615  NotOnSurfaceException.cpp \
    1716  ShapeException.cpp \
     
    2625  MathException.hpp \
    2726  MissingValueException.hpp \
    28   NotInvertibleException.hpp \
    2927  NotOnSurfaceException.hpp \
    3028  FormulaStringParseException.hpp \
  • src/LinearAlgebra/Exceptions.hpp

    r3bfd78 ra700c4  
    2323/** ========================== General error information ================== */
    2424
    25 /** Exception information for SkewException: determinant that is not null.
     25/** Exception information for LinearAlgebraException: determinant.
    2626 */
    27 typedef boost::error_info<struct tag_LinearAlgebraDeterminant, double> LinearAlgebraDeterminant;
    28 /** Exception information for SkewException: determinant that is not null.
     27typedef boost::error_info<struct tag_LinearAlgebraDeterminant, const double> LinearAlgebraDeterminant;
     28
     29/** Exception information for LinearAlgebraException: matrix.
    2930 */
    30 typedef boost::error_info<struct tag_LinearAlgebraMatrix, MatrixContent*> LinearAlgebraMatrix;
     31typedef boost::error_info<struct tag_LinearAlgebraMatrix, const MatrixContent* const> LinearAlgebraMatrixContent;
    3132
    3233/** ============================ Specific exceptions ====================== */
     
    3637struct SkewException : virtual LinearAlgebraException { };
    3738
     39/** Exception thrown when are matrix is not invertiable, i.e. its determinant is NULL.
     40 */
     41struct NotInvertibleException : virtual LinearAlgebraException { };
     42
    3843#endif /* EXCEPTIONS_HPP_ */
  • src/LinearAlgebra/Line.cpp

    r3bfd78 ra700c4  
    136136  if (fabs(M->Determinant()) > LINALG_MYEPSILON()) {
    137137    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));
    139139  }
    140140
  • src/LinearAlgebra/MatrixContent.cpp

    r3bfd78 ra700c4  
    1515
    1616#include "CodePatterns/Assert.hpp"
    17 #include "Exceptions/NotInvertibleException.hpp"
    1817#include "LinearAlgebra/defs.hpp"
    1918#include "LinearAlgebra/fast_functions.hpp"
  • src/LinearAlgebra/RealSpaceMatrix.cpp

    r3bfd78 ra700c4  
    2020#include "CodePatterns/MemDebug.hpp"
    2121
    22 #include "Exceptions/NotInvertibleException.hpp"
    2322#include "CodePatterns/Assert.hpp"
    2423#include "LinearAlgebra/defs.hpp"
     24#include "LinearAlgebra/Exceptions.hpp"
    2525#include "LinearAlgebra/fast_functions.hpp"
    2626#include "LinearAlgebra/MatrixContent.hpp"
     
    250250  double det = determinant();
    251251  if(fabs(det) <= LINALG_MYEPSILON()){
    252     throw NotInvertibleException(__FILE__,__LINE__);
     252    throw NotInvertibleException() << LinearAlgebraDeterminant(det) << LinearAlgebraMatrixContent(this->content);
    253253  }
    254254
  • src/LinearAlgebra/unittests/MatrixUnitTest.cpp

    r3bfd78 ra700c4  
    2727#include "MatrixUnitTest.hpp"
    2828
    29 #include "Exceptions/NotInvertibleException.hpp"
    3029#include "LinearAlgebra/defs.hpp"
     30#include "LinearAlgebra/Exceptions.hpp"
    3131#include "LinearAlgebra/RealSpaceMatrix.hpp"
    3232#include "LinearAlgebra/Vector.hpp"
Note: See TracChangeset for help on using the changeset viewer.