Skip to content

Commit 5d50490

Browse files
Apply suggestions from code review
Co-authored-by: Joshua Lampert <51029046+JoshuaLampert@users.noreply.github.com>
1 parent 0c33dc2 commit 5d50490

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/equations/hyperbolic_sainte_marie_1d.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ struct HyperbolicSainteMarieEquations1D{Bathymetry <:
8080
gravity::RealT # gravitational acceleration
8181
eta0::RealT # constant still-water surface
8282
alpha::RealT # hyperbolic relaxation parameter (→ ∞ for Sainte-Marie)
83-
c_squared::RealT # c^2 = alpha^2 * g * eta0
83+
c_squared::RealT # c^2 = alpha^2 * g * h0
8484
end
8585

8686
function HyperbolicSainteMarieEquations1D(; bathymetry_type = bathymetry_mild_slope,
@@ -341,7 +341,7 @@ function rhs!(dq, q, t, mesh,
341341
# dh[1] -= h[1] * v[1] / left_boundary_weight(D1)
342342
# dh[end] += h[end] * v[end] / right_boundary_weight(D1)
343343
# FIXME
344-
error("Reflecting boundary conditions are not implemented yet.")
344+
throw(ArgumentError("Reflecting boundary conditions are not implemented yet."))
345345
end
346346

347347
# Plain: h v_t + h v v_x + g (h + b) h_x

0 commit comments

Comments
 (0)