Skip to content

Commit

Permalink
Fix call of invokelatest for julia 1.8 (#39)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Schlottke-Lakemper <[email protected]>
  • Loading branch information
benegee and sloede authored Jun 28, 2023
1 parent 2f78d20 commit fda609d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion LibTrixi.jl/src/api_jl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit fda609d

Please sign in to comment.