Skip to content

Commit

Permalink
Add explicit error message about Basis::SphericalHarmonic
Browse files Browse the repository at this point in the history
  • Loading branch information
kidder committed Dec 6, 2024
1 parent 6bcf0ca commit a35377d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/NumericalAlgorithms/Spectral/Spectral.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,11 @@ decltype(auto) get_spectral_quantity_for_mesh(F&& f, const Mesh<1>& mesh) {
"Only CellCentered and FaceCentered are supported for finite "
"difference quadrature.");
}
case Basis::SphericalHarmonic:
ERROR(
"Basis::SphericalHarmonic is a two-dimensional basis and is not "
"supported for this function. If you want the collocation points, "
"use the function logical_coordinates.");
default:
ERROR("Missing basis case for spectral quantity. The missing basis is: "
<< mesh.basis(0));
Expand Down

0 comments on commit a35377d

Please sign in to comment.