From fda609df034e6c687074784ccd47686a8ec08d5e Mon Sep 17 00:00:00 2001 From: bgeihe <135045760+bgeihe@users.noreply.github.com> Date: Wed, 28 Jun 2023 11:53:04 +0200 Subject: [PATCH] Fix call of invokelatest for julia 1.8 (#39) Co-authored-by: Michael Schlottke-Lakemper --- LibTrixi.jl/src/api_jl.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LibTrixi.jl/src/api_jl.jl b/LibTrixi.jl/src/api_jl.jl index 9d655b3f..518d3ad4 100644 --- a/LibTrixi.jl/src/api_jl.jl +++ b/LibTrixi.jl/src/api_jl.jl @@ -4,7 +4,8 @@ function trixi_initialize_simulation_jl(filename) # Initialize simulation state # Note: we need `invokelatest` here since the function is dynamically upon `include` - simstate = invokelatest(Main.init_simstate) + # Note: `invokelatest` is not exported until Julia v1.9, thus we call it through `Base` + simstate = Base.invokelatest(Main.init_simstate) if show_debug_output() println("Simulation state initialized")