Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
pushfirst!(LOAD_PATH, joinpath(@__DIR__, "..")) # add Delicaseas to environment stack
pushfirst!(LOAD_PATH, joinpath(@__DIR__, "..")) # add SaltySnacks to environment stack

using
Documenter,
Literate,
CairoMakie, # so that Literate.jl does not capture precompilation output or warnings
Glob,
Delicaseas
SaltySnacks

ENV["DATADEPS_ALWAYS_ACCEPT"] = "true"

Expand Down Expand Up @@ -35,7 +35,7 @@ example_pages = [
format = Documenter.HTML(
collapselevel = 2,
prettyurls = get(ENV, "CI", nothing) == "true",
canonical = "https://github.com/glwagner/Delicaseas/dev"
canonical = "https://github.com/glwagner/SaltySnacks/dev"
)

pages = [
Expand All @@ -51,8 +51,8 @@ pages = [
]

makedocs(
sitename = "Delicaseas.jl",
modules = [Delicaseas],
sitename = "SaltySnacks.jl",
modules = [SaltySnacks],
format = format,
pages = pages,
doctest = true,
Expand All @@ -67,7 +67,7 @@ for file in vcat(glob("docs/*.jld2"), glob("docs/*.nc"))
rm(file)
end

deploydocs(repo = "github.com/CliMA/Delicaseas.jl.git",
deploydocs(repo = "github.com/CliMA/SaltySnacks.jl.git",
versions = ["stable" => "v^", "v#.#.#", "dev" => "dev"],
forcepush = true,
devbranch = "main",
Expand Down
11 changes: 11 additions & 0 deletions examples/one_dimensional_advection.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using Oceananigans

grid = RectilinearGrid(size=128, x=(-5, 15), topology=(Periodic, Flat, Flat))
velocities = PrescribedVelocities(u=1)
model = HydrostaticFreeSurfaceModel(; grid, velocities, tracers=:c, buoyancy=nothing)
set!(model, c = x -> exp(-x^2 / 2))
simulation = Simulation(model, Δt=0.01, stop_time=2)
run!(simulation)

@show simulation

5 changes: 0 additions & 5 deletions src/Delicaseas.jl

This file was deleted.

5 changes: 5 additions & 0 deletions src/SaltySnacks.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module SaltySnacks

greet() = print("Hello World!")

end # module SaltySnacks