|
38 | 38 | r"┌ Info: The desired tank length in y-direction.*\n", |
39 | 39 | r"└ New tank length in y-direction.*\n" |
40 | 40 | ] |
41 | | - @test semi.neighborhood_searches[1, 1].cell_list isa FullGridCellList |
42 | | - @test sol.retcode == ReturnCode.Success |
43 | | - v_ode, u_ode = sol.u[end].x |
| 41 | + # Since Julia 1.12 has issues with world age, we need to use `@invokelatest` |
| 42 | + # everywhere here. For some reason, this is only necessary in this and the |
| 43 | + # next test, but not in the other tests in this file. |
| 44 | + # Perhaps because this is inside an `if` block? |
| 45 | + @test (@invokelatest (@__MODULE__).semi).neighborhood_searches[1, 1].cell_list isa |
| 46 | + FullGridCellList |
| 47 | + @test (@invokelatest (@__MODULE__).sol).retcode == |
| 48 | + (@invokelatest (@__MODULE__).ReturnCode).Success |
| 49 | + v_ode, u_ode = (@invokelatest (@__MODULE__).sol).u[end].x |
44 | 50 | backend = TrixiParticles.KernelAbstractions.get_backend(v_ode) |
45 | 51 | @test backend == Main.parallelization_backend |
46 | 52 | @test eltype(v_ode) == Float64 |
|
67 | 73 | r"┌ Info: The desired tank length in y-direction .*\n", |
68 | 74 | r"└ New tank length in y-direction.*\n" |
69 | 75 | ] |
70 | | - @test semi.neighborhood_searches[1, 1].cell_list isa FullGridCellList |
71 | | - @test sol.retcode == ReturnCode.Success |
72 | | - v_ode, u_ode = sol.u[end].x |
| 76 | + # See the comment in the previous test about `@invokelatest` |
| 77 | + @test (@invokelatest (@__MODULE__).semi).neighborhood_searches[1, 1].cell_list isa |
| 78 | + FullGridCellList |
| 79 | + @test (@invokelatest (@__MODULE__).sol).retcode == |
| 80 | + (@invokelatest (@__MODULE__).ReturnCode).Success |
| 81 | + v_ode, u_ode = (@invokelatest (@__MODULE__).sol).u[end].x |
73 | 82 | backend = TrixiParticles.KernelAbstractions.get_backend(v_ode) |
74 | 83 | @test backend == Main.parallelization_backend |
75 | 84 | @test eltype(v_ode) == Float32 |
|
0 commit comments