From 7f39042fb1d03812aedc4ff9795f3fef0fb2ab39 Mon Sep 17 00:00:00 2001 From: Joshua Lampert <51029046+JoshuaLampert@users.noreply.github.com> Date: Sun, 25 Feb 2024 19:40:48 +0100 Subject: [PATCH] =?UTF-8?q?fix=20initial=20condition=20for=20manufactured?= =?UTF-8?q?=20solution=20(Sv=C3=A4rd-Kalisch=20equations)=20(#92)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/equations/svaerd_kalisch_1d.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/equations/svaerd_kalisch_1d.jl b/src/equations/svaerd_kalisch_1d.jl index 00e33777..c2daa136 100644 --- a/src/equations/svaerd_kalisch_1d.jl +++ b/src/equations/svaerd_kalisch_1d.jl @@ -94,7 +94,8 @@ function initial_condition_manufactured(x, t, mesh) eta = exp(t) * cospi(2 * (x - 2 * t)) v = exp(t / 2) * sinpi(2 * (x - t / 2)) - D = 5 + 2 * cospi(2 * x) + b = -5 - 2 * cospi(2 * x) + D = equations.eta0 - b return SVector(eta, v, D) end