Skip to content

Commit

Permalink
Merge #1384
Browse files Browse the repository at this point in the history
1384: Qualify ClimaTimeSteppers in CUDA shallow water example r=charleskawczynski a=charleskawczynski



Co-authored-by: Charles Kawczynski <kawczynski.charles@gmail.com>
  • Loading branch information
bors[bot] and charleskawczynski authored Jul 28, 2023
2 parents 85ea29c + 93324c1 commit 393ab2b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions examples/sphere/shallow_water_cuda.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ using ClimaComms
using DocStringExtensions
using LinearAlgebra
using ClimaTimeSteppers, DiffEqBase
import OrdinaryDiffEq as ODE
import ClimaTimeSteppers as CTS
using DiffEqCallbacks
using NVTX

Expand Down Expand Up @@ -564,12 +566,15 @@ function shallow_water_driver_cuda(ARGS, ::Type{FT}) where {FT}
end
return nothing
end

prob =
ODEProblem(ClimaODEFunction(; T_exp! = rhs!), Y, (0.0, T), parameters)
integrator = DiffEqBase.init(
prob = ODE.ODEProblem(
CTS.ClimaODEFunction(; T_exp! = rhs!),
Y,
(FT(0), T),
parameters,
)
integrator = ODE.init(
prob,
ExplicitAlgorithm(SSP33ShuOsher()),
CTS.ExplicitAlgorithm(CTS.SSP33ShuOsher()),
dt = dt,
saveat = [],
progress = true,
Expand Down

0 comments on commit 393ab2b

Please sign in to comment.