Skip to content

Commit

Permalink
Merge pull request #332 from FourierFlows/ncc/add-siegelman-young
Browse files Browse the repository at this point in the history
Add Siegelman & Young 2023 + use Documenter v1
  • Loading branch information
navidcy committed Oct 27, 2023
2 parents f8fd4b4 + 39a0c5e commit 700fd74
Show file tree
Hide file tree
Showing 9 changed files with 61 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: julia-actions/setup-julia@latest
with:
version: 1.6
version: 1.9
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Documenter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@latest
with:
version: '1.8'
version: '1.9'
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
Expand Down
3 changes: 2 additions & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"

[compat]
CairoMakie = "< 0.10.5"
CUDA = "1, 2.4.2, 3.0.0 - 3.6.4, 3.7.1, 4"
CairoMakie = "< 0.10.5"
Documenter = "1"
Literate = "≥2.9.0"
94 changes: 47 additions & 47 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,55 +48,55 @@ format = Documenter.HTML(
)

makedocs(
modules = [GeophysicalFlows],
doctest = true,
clean = true,
modules = [GeophysicalFlows],
doctest = true,
clean = true,
checkdocs = :all,
format = format,
authors = "Navid C. Constantinou, Gregory L. Wagner, and contributors",
sitename = "GeophysicalFlows.jl",
pages = Any[
"Home" => "index.md",
"Installation instructions" => "installation_instructions.md",
"Aliasing" => "aliasing.md",
"GPU" => "gpu.md",
"Visualize output" => "visualize.md",
"Examples" => [
"TwoDNavierStokes" => Any[
"literated/twodnavierstokes_decaying.md",
"literated/twodnavierstokes_stochasticforcing.md",
"literated/twodnavierstokes_stochasticforcing_budgets.md",
],
"SingleLayerQG" => Any[
"literated/singlelayerqg_betadecay.md",
"literated/singlelayerqg_betaforced.md",
"literated/singlelayerqg_decaying_topography.md",
"literated/singlelayerqg_decaying_barotropic_equivalentbarotropic.md"
],
"BarotropicQGQL" => Any[
"literated/barotropicqgql_betaforced.md",
],
"MultiLayerQG" => Any[
"literated/multilayerqg_2layer.md"
],
"SurfaceQG" => Any[
"literated/surfaceqg_decaying.md"
format = format,
authors = "Navid C. Constantinou, Gregory L. Wagner, and contributors",
sitename = "GeophysicalFlows.jl",
pages = Any[
"Home" => "index.md",
"Installation instructions" => "installation_instructions.md",
"Aliasing" => "aliasing.md",
"GPU" => "gpu.md",
"Visualize output" => "visualize.md",
"Examples" => [
"TwoDNavierStokes" => Any[
"literated/twodnavierstokes_decaying.md",
"literated/twodnavierstokes_stochasticforcing.md",
"literated/twodnavierstokes_stochasticforcing_budgets.md",
],
"SingleLayerQG" => Any[
"literated/singlelayerqg_betadecay.md",
"literated/singlelayerqg_betaforced.md",
"literated/singlelayerqg_decaying_topography.md",
"literated/singlelayerqg_decaying_barotropic_equivalentbarotropic.md"
],
"BarotropicQGQL" => Any[
"literated/barotropicqgql_betaforced.md",
],
"MultiLayerQG" => Any[
"literated/multilayerqg_2layer.md"
],
"SurfaceQG" => Any[
"literated/surfaceqg_decaying.md"
]
],
"Modules" => Any[
"modules/twodnavierstokes.md",
"modules/singlelayerqg.md",
"modules/barotropicqgql.md",
"modules/multilayerqg.md",
"modules/surfaceqg.md"
],
"Stochastic forcing" => "stochastic_forcing.md",
"Contributor's guide" => "contributing.md",
"Library" => Any[
"lib/types.md",
"lib/functions.md"
]
],
"Modules" => Any[
"modules/twodnavierstokes.md",
"modules/singlelayerqg.md",
"modules/barotropicqgql.md",
"modules/multilayerqg.md",
"modules/surfaceqg.md"
],
"Stochastic forcing" => "stochastic_forcing.md",
"Contributor's guide" => "contributing.md",
"Library" => Any[
"lib/types.md",
"lib/functions.md"
]
]
]
)

@info "Clean up temporary .jld2 and .nc output created by doctests or literated examples..."
Expand Down
2 changes: 2 additions & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ The bibtex entry for the paper is:

## Papers using `GeophysicalFlows.jl`

1. Siegelman, L. and Young, W. R. (2023). Two-dimensional turbulence above topography: Vortices and potential vorticity homogenization. _Proceedings of the National Academy of Sciences_, **120(44)**, e2308018120, doi:[10.1073/pnas.2308018120](https://doi.org/10.1073/pnas.2308018120).

1. Bisits, J. I., Stanley G. J., and Zika, J. D. (2023). Can we accurately quantify a lateral diffusivity using a single tracer release? _Journal of Physical Oceanography_, **53(2)**, 647–659, doi:[10.1175/JPO-D-22-0145.1](https://doi.org/10.1175/JPO-D-22-0145.1).

1. Siegelman, L., Young, W. R., and Ingersoll, A. P. (2022). Polar vortex crystals: Emergence and structure _Proceedings of the National Academy of Sciences_, **119(17)**, e2120486119. doi:[10.1073/pnas.2120486119](https://doi.org/10.1073/pnas.2120486119).
Expand Down
5 changes: 1 addition & 4 deletions docs/src/installation_instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ You can install the latest version of GeophysicalFlows.jl via the built-in packa
instantiate/build all the required dependencies

```julia
julia>]
julia> ]
(v1.6) pkg> add GeophysicalFlows
(v1.6) pkg> instantiate
```
Expand All @@ -30,6 +30,3 @@ more than happy to help with getting your simulations up and running.

Last version compatible with Julia v1.5: GeophysicalFlows.jl v0.13.1

Last version compatible with Julia v1.0.5 (the current long-term-release): GeophysicalFlows.jl v0.5.1


4 changes: 4 additions & 0 deletions docs/src/lib/functions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Functions

## `GeophysicalFlows`
```@docs
GeophysicalFlows.GeophysicalFlows
```

### Exported functions

Expand All @@ -22,6 +25,7 @@ GeophysicalFlows.TwoDNavierStokes.energy_work
GeophysicalFlows.TwoDNavierStokes.enstrophy_dissipation_hyperviscosity
GeophysicalFlows.TwoDNavierStokes.enstrophy_dissipation_hypoviscosity
GeophysicalFlows.TwoDNavierStokes.enstrophy_work
GeophysicalFlows.TwoDNavierStokes.palinstrophy
```

### Private functions
Expand Down
4 changes: 2 additions & 2 deletions examples/singlelayerqg_betadecay.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ nothing #hide
stepper = "FilteredRK4" # timestepper
dt = 0.04 # timestep
nsteps = 2000 # total number of time-steps
nsubs = 20 # number of time-steps for intermediate logging/plotting (nsteps must be multiple of nsubs)
nsubs = 10 # number of time-steps for intermediate logging/plotting (nsteps must be multiple of nsubs)
nothing #hide


Expand Down Expand Up @@ -201,7 +201,7 @@ startwalltime = time()

frames = 0:round(Int, nsteps / nsubs)

record(fig, "singlelayerqg_betadecay.mp4", frames, framerate = 8) do j
record(fig, "singlelayerqg_betadecay.mp4", frames, framerate = 12) do j
if j % round(Int, nsteps/nsubs / 4) == 0
cfl = clock.dt * maximum([maximum(vars.u) / grid.dx, maximum(vars.v) / grid.dy])

Expand Down
2 changes: 1 addition & 1 deletion examples/singlelayerqg_decaying_topography.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# # [Decaying barotropic QG turbulence over topography](@id singlelayerqg_decaying_topography)
# # [Decaying barotropic QG turbulence over topography](@id singlelayerqg_decay_topography_example)
#
# An example of decaying barotropic quasi-geostrophic turbulence over topography.
#
Expand Down

2 comments on commit 700fd74

@navidcy
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/94233

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.15.3 -m "<description of version>" 700fd74a89d76e7a6813a29d1c76a54d466e0781
git push origin v0.15.3

Please sign in to comment.