From 96f4c6e1f2e0ca23dd5d964fb18d5eddc5cf28ab Mon Sep 17 00:00:00 2001
From: Michel Juillard <michel@debian.home>
Date: Tue, 7 Apr 2020 12:08:59 +0200
Subject: [PATCH] fixed exceptions
---
src/GeneralizedSchurDecompositionSolver.jl | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/GeneralizedSchurDecompositionSolver.jl b/src/GeneralizedSchurDecompositionSolver.jl
index e4f1d7c..e4c3935 100644
--- a/src/GeneralizedSchurDecompositionSolver.jl
+++ b/src/GeneralizedSchurDecompositionSolver.jl
@@ -44,9 +44,6 @@ struct GsSolverWs
end
end
-struct UnstableSystemException <: Exception end
-struct UndeterminateSystemException <: Exception end
-
#"""
# gs_solver!(ws::GsSolverWs,d::Matrix{Float64},e::Matrix{Float64},n1::Int64,qz_criterium)
#
@@ -63,9 +60,9 @@ function gs_solver!(ws::GsSolverWs,d::Matrix{Float64},e::Matrix{Float64},n1::Int
nstable = ws.dgges_ws.sdim[]
if nstable < n1
- throw(UnstableSystemException)
+ throw(UnstableSystemException())
elseif nstable > n1
- throw(UndeterminateSystemExcpetion)
+ throw(UndeterminateSystemException())
end
ws.g2 .= ws.Z12'
linsolve_core!(ws.Z22', ws.g2, ws.linsolve_ws_22)
--
GitLab