Skip to content

Commit

Permalink
fix tests with MultiLayerQG
Browse files Browse the repository at this point in the history
  • Loading branch information
navidcy committed Dec 20, 2023
1 parent 1c87206 commit 4a07002
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/test_traceradvectiondiffusion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -305,20 +305,20 @@ function test_diffusion_multilayerqg(stepper, dt, tfinal, dev::Device=CPU())
nx = 128
Lx = 2π

μ = 0
β = 0
μ = 0
β = 0

nlayers = 2
f₀, g = 1, 1
nlayers = 2
f₀ = 1
H = [0.2, 0.8]
ρ = [4.0, 5.0]
b = [-1.0, -1.2]

U = zeros(nlayers)
U[1] = 0.0
U[2] = 0.0

MQGprob = MultiLayerQG.Problem(nlayers, dev;
nx, Lx, f₀, g, H, ρ, U, μ, β, dt,
nx, Lx, f₀, H, b, U, μ, β, dt,
stepper="FilteredRK4", aliased_fraction=0)
grid = MQGprob.grid
q₀ = zeros(dev, eltype(grid), (grid.nx, grid.ny, nlayers))
Expand Down

0 comments on commit 4a07002

Please sign in to comment.