Skip to content

Commit

Permalink
Merge pull request #82 from FourierFlows/GPUifyMultiLayerQG
Browse files Browse the repository at this point in the history
GPUify MultilayerQG
  • Loading branch information
navidcy authored May 28, 2020
2 parents 0bb51f1 + 050d3d9 commit 248b769
Show file tree
Hide file tree
Showing 4 changed files with 310 additions and 247 deletions.
8 changes: 4 additions & 4 deletions examples/multilayerqg_2layer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ Lx = 2π # domain size
μ = 5e-2 # bottom drag
β = 5 # the y-gradient of planetary PV

nlayers = 2 # number of layers
f0, g = 1, 1 # Coriolis parameter and gravitational constant
H = [0.2, 0.8] # the rest depths of each layer
ρ = [4.0, 5.0] # the density of each layer
nlayers = 2 # number of layers
f0, g = 1.0, 1.0 # Coriolis parameter and gravitational constant
H = [0.2, 0.8] # the rest depths of each layer
ρ = [4.0, 5.0] # the density of each layer

U = zeros(nlayers) # the imposed mean zonal flow in each layer
U[1] = 1.0
Expand Down
Loading

0 comments on commit 248b769

Please sign in to comment.