Closed
Description
MWE:
using OrdinaryDiffEq, CUDA, Test
CUDA.allowscalar(false)
N = 256
# Define the initial condition as normal arrays
u0 = zeros(N, N, 3)
u0 .= 1.0
gu0 = CuArray(Float32.(u0))
# Define the discretized PDE as an ODE function
function f(du, u, p, t)
du .= u
end
prob2 = ODEProblem(f, gu0, (0.0, 10.0))
solve(prob2, ORK256(), save_everystep=false, save_start=false, dt=0.01)
Metadata
Metadata
Assignees
Labels
No labels