Skip to content

Commit

Permalink
add shorcuts in test_mqg_energies
Browse files Browse the repository at this point in the history
  • Loading branch information
navidcy committed Jul 7, 2022
1 parent d91872a commit 43bfa28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_multilayerqg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ function test_mqg_energies(dev::Device=CPU();
ρ = [1.0, 2.0] # Make g′ = 1/2

prob = MultiLayerQG.Problem(nlayers, dev; nx, ny, Lx, Ly, f₀, g, H, ρ)
sol, cl, pr, vs, gr = prob.sol, prob.clock, prob.params, prob.vars, prob.grid

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

Expand Down

0 comments on commit 43bfa28

Please sign in to comment.