From 23f440109bb595f820ed89e1bd8ee23cb80aff48 Mon Sep 17 00:00:00 2001 From: Benedict Geihe Date: Wed, 28 Jun 2023 11:33:36 +0200 Subject: [PATCH 1/2] use Base. prefix --- LibTrixi.jl/src/api_jl.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibTrixi.jl/src/api_jl.jl b/LibTrixi.jl/src/api_jl.jl index 9d655b3f..79f6d6aa 100644 --- a/LibTrixi.jl/src/api_jl.jl +++ b/LibTrixi.jl/src/api_jl.jl @@ -4,7 +4,7 @@ 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) + simstate = Base.invokelatest(Main.init_simstate) if show_debug_output() println("Simulation state initialized") From 417506e92799304a51a5f6ff081f17ee25141a26 Mon Sep 17 00:00:00 2001 From: bgeihe <135045760+bgeihe@users.noreply.github.com> Date: Wed, 28 Jun 2023 11:37:59 +0200 Subject: [PATCH 2/2] Document call of Base.invokelatest Co-authored-by: Michael Schlottke-Lakemper --- LibTrixi.jl/src/api_jl.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/LibTrixi.jl/src/api_jl.jl b/LibTrixi.jl/src/api_jl.jl index 79f6d6aa..518d3ad4 100644 --- a/LibTrixi.jl/src/api_jl.jl +++ b/LibTrixi.jl/src/api_jl.jl @@ -4,6 +4,7 @@ function trixi_initialize_simulation_jl(filename) # Initialize simulation state # Note: we need `invokelatest` here since the function is dynamically upon `include` + # 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()