Skip to content

Commit

Permalink
fix displacement conversion on CUDA
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-de-montserrat committed Jul 5, 2024
1 parent f29651e commit f0e1aeb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ext/CUDA/2D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,18 @@ function JR2D.velocity2displacement!(::CUDABackendTrait, stokes::JustRelax.Stoke
return _velocity2displacement!(stokes, dt)
end

function velocity2displacement!(::CUDABackendTrait, stokes::JustRelax.StokesArrays, dt)
return _velocity2displacement!(stokes, dt)
end

function JR2D.displacement2velocity!(::CUDABackendTrait, stokes::JustRelax.StokesArrays, dt)
return _displacement2velocity!(stokes, dt)
end

function displacement2velocity!(::CUDABackendTrait, stokes::JustRelax.StokesArrays, dt)
return _displacement2velocity!(stokes, dt)
end

# Solvers
function JR2D.solve!(::CUDABackendTrait, stokes, args...; kwargs)
return _solve!(stokes, args...; kwargs...)
Expand Down

0 comments on commit f0e1aeb

Please sign in to comment.