From 3e84b8b31be44f50885106a3702775160721b649 Mon Sep 17 00:00:00 2001 From: Erik Faulhaber <44124897+efaulhaber@users.noreply.github.com> Date: Tue, 24 Dec 2024 11:17:12 +0100 Subject: [PATCH] Fix doctests --- docs/src/gpu.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/gpu.md b/docs/src/gpu.md index 8e388b1dd..71cca0d68 100644 --- a/docs/src/gpu.md +++ b/docs/src/gpu.md @@ -21,7 +21,7 @@ max_corner = maximum(tank.boundary.coordinates, dims=2) cell_list = TrixiParticles.PointNeighbors.FullGridCellList(; min_corner, max_corner) # output -PointNeighbors.FullGridCellList{PointNeighbors.DynamicVectorOfVectors{Int32, Matrix{Int32}, Vector{Int32}, Base.RefValue{Int32}}, Nothing, SVector{2, Float64}, SVector{2, Float64}}(Vector{Int32}[], nothing, [-0.24500000000000002, -0.24500000000000002], [1.245, 1.245]) +PointNeighbors.FullGridCellList{PointNeighbors.DynamicVectorOfVectors{Int32, Matrix{Int32}, Vector{Int32}, Base.RefValue{Int32}}, Nothing, SVector{2, Float64}, SVector{2, Float64}}(Vector{Int32}[], nothing, [-0.12500000000000003, -0.12500000000000003], [1.125, 1.125]) ``` We then need to pass this cell list to the neighborhood search and the neighborhood search @@ -74,7 +74,7 @@ Then, a GPU-compatible neighborhood search is defined, and the original example is included with the new neighborhood search. This requires the assignments `neighborhood_search = ...` and `data_type = ...` in the original example file. -In `examples/fluid/dam_break_2d.jl`, we specifically set `data_type=nothing`, even though +Note that in `examples/fluid/dam_break_2d.jl`, we specifically set `data_type=nothing`, even though this is the default value, so that we can use `trixi_include` to replace this value. To now run this simulation on a GPU, all we have to do is change `data_type` to the