-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Problem type in MultilayerQG #28
Conversation
…id confusion with gravitational constant)
…Flows/GeophysicalFlows.jl into FixTypedProbMultilayerQG
Pull Request Test Coverage Report for Build 247
💛 - Coveralls |
Codecov Report
@@ Coverage Diff @@
## master #28 +/- ##
==========================================
+ Coverage 97.84% 97.85% +<.01%
==========================================
Files 6 6
Lines 511 513 +2
==========================================
+ Hits 500 502 +2
Misses 11 11
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
mu = 5e-2 # bottom drag | ||
beta = 5 # the y-gradient of planetary PV | ||
Lx = 2π # domain size | ||
μ = 5e-2 # bottom drag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
calcS!(S, Fp, Fm, grid) | ||
|
||
invS = Array{Float64}(undef, (nkr, nl, nlayers, nlayers)) | ||
invS = Array{T}(undef, (nkr, nl, nlayers, nlayers)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that'll do it
Vars(q, psi, u, v, qh, psih, uh, vh) | ||
end | ||
|
||
""" | ||
ForcedVars(g) | ||
|
||
Returns the vars for forced multi-layer QG problem with grid g. | ||
Returns the vars for forced multi-layer QG problem with grid gr. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use "gr
" (with backticks) if you want it to render as code in the docs.
This PR fixes some type instability in the MultilayerQG Problem constructor.
@glwagner: if you are happy with this merge and then create a new branch to implement
nlayers
as a type-parameter ofParams
andVars
.