From 9cdba55e8ed7333c3726687f92fd50eb9403e3bc Mon Sep 17 00:00:00 2001 From: ErikQQY <2283984853@qq.com> Date: Tue, 27 Jun 2023 13:32:42 +0800 Subject: [PATCH] Throw appropriate error when analytic is not given Signed-off-by: ErikQQY <2283984853@qq.com> --- src/solutions/solution_interface.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/solutions/solution_interface.jl b/src/solutions/solution_interface.jl index e9be869af..900fecfea 100644 --- a/src/solutions/solution_interface.jl +++ b/src/solutions/solution_interface.jl @@ -672,6 +672,7 @@ function solplot_vecs_and_labels(dims, vars, plot_timeseries, plott, sol, plot_a end if plot_analytic + @assert sol.u_analytic !== Nothing analytic_plot_vecs = [] for x in vars tmp = []