Skip to content

Commit

Permalink
Add link
Browse files Browse the repository at this point in the history
  • Loading branch information
efaulhaber committed Mar 10, 2024
1 parent 70d6c3b commit c559d6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/general/semidiscretization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ end
# return PtrArray(pointer(view(u_ode, range)),
# (StaticInt(u_nvariables(system)), n_moving_particles(system)))

# Use the plain `Array` version (for now) because of weird heisenbugs with `PtrArray`s.
# See https://github.com/trixi-framework/TrixiParticles.jl/pull/454
return unsafe_wrap(Array{eltype(u_ode), 2}, pointer(view(u_ode, range)),
(u_nvariables(system), n_moving_particles(system)))
end
Expand All @@ -338,7 +340,7 @@ end

# return PtrArray(pointer(view(v_ode, range)),
# (StaticInt(v_nvariables(system)), n_moving_particles(system)))

return unsafe_wrap(Array{eltype(v_ode), 2}, pointer(view(v_ode, range)),
(v_nvariables(system), n_moving_particles(system)))
end
Expand Down

0 comments on commit c559d6b

Please sign in to comment.