|
3 | 3 |
|
4 | 4 | #include "SerendipityBasis.h" |
5 | 5 | #include "NodeOrderingConventions.h" |
6 | | -#include "Math/DenseLinearAlgebra.h" |
| 6 | +#include "Core/Exception.h" |
| 7 | +#include "math/DenseLinearAlgebra.h" |
7 | 8 |
|
8 | 9 | #include <algorithm> |
9 | 10 | #include <array> |
@@ -195,21 +196,21 @@ std::vector<double> build_inverse_vandermonde( |
195 | 196 | // too. |
196 | 197 | const double norm_v = matrix_norm_inf(vandermonde, n); |
197 | 198 |
|
198 | | - // invert_dense_matrix raises a generic FEException if the Vandermonde is |
| 199 | + // invert_dense_matrix raises a generic CoreException if the Vandermonde is |
199 | 200 | // exactly singular (a rank-deficient pivot). For a serendipity family that |
200 | 201 | // means the node set is not unisolvent at this order -- a construction failure |
201 | 202 | // in basis terms -- so translate it to BasisConstructionException, presenting |
202 | 203 | // the singular and the ill-conditioned cases (below) as one catchable type in |
203 | 204 | // one vocabulary. The matrix was just built n-by-n from n modes, so a |
204 | | - // size-mismatch FEException cannot originate here; rank deficiency is the only |
205 | | - // FEException this call can raise. (Defensive: the supported node sets are |
| 205 | + // size-mismatch CoreException cannot originate here; rank deficiency is the only |
| 206 | + // CoreException this call can raise. (Defensive: the supported node sets are |
206 | 207 | // provably unisolvent, so this branch is not reachable for the shipped orders.) |
207 | 208 | std::vector<double> inverse; |
208 | 209 | try { |
209 | 210 | inverse = math::invert_dense_matrix( |
210 | 211 | std::move(vandermonde), n, |
211 | 212 | "SerendipityBasis interpolation matrix for " + label); |
212 | | - } catch (const FEException&) { |
| 213 | + } catch (const CoreException&) { |
213 | 214 | svmp::raise<BasisConstructionException>("SerendipityBasis: " + label + |
214 | 215 | " interpolation matrix is singular; the serendipity node set is not " |
215 | 216 | "unisolvent at the requested order"); |
|
0 commit comments