Skip to content

Commit

Permalink
proper streamfunction initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
navidcy committed Jul 7, 2022
1 parent 7ef9de8 commit d91872a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_multilayerqg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ function test_mqg_energies(dev::Device=CPU();

ψ = zeros(dev, eltype(gr), (gr.nx, gr.ny, nlayers))

CUDA.@allowscalar @views ψ[:, :, 1] .= cos(2k₀ * x) * cos(2l₀ * y)
CUDA.@allowscalar @views ψ[:, :, 2] .= 1/2 * cos(2k₀ * x) * cos(2l₀ * y)
CUDA.@allowscalar @views @. ψ[:, :, 1] = cos(2k₀ * x) * cos(2l₀ * y)
CUDA.@allowscalar @views @. ψ[:, :, 2] = 1/2 * cos(2k₀ * x) * cos(2l₀ * y)

MultiLayerQG.set_ψ!(prob, ψ)

Expand Down

0 comments on commit d91872a

Please sign in to comment.