Skip to content

Commit

Permalink
docs: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
agdestein committed Nov 22, 2024
1 parent 5450736 commit cdbec55
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
localdev = haskey(ENV, "LOCALDEV")

# Get access to example dependencies
# Those are required for running the examples and generating output
push!(LOAD_PATH, joinpath(@__DIR__, "..", "examples"))

using IncompressibleNavierStokes
Expand Down
2 changes: 1 addition & 1 deletion docs/src/manual/closure.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Neural closure models

!!! note "`NeuralClorusure`"
!!! note "`NeuralClosure`"
These features are experimental, and require cloning
IncompressibleNavierStokes from GitHub:
```sh
Expand Down
4 changes: 2 additions & 2 deletions docs/src/manual/sciml.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ using IncompressibleNavierStokes
ax = range(0, 1, 101)
setup = Setup(; x = (ax, ax), Re = 500.0)
psolver = default_psolver(setup)
f(u, p, t) = create_right_hand_side(setup, psolver)
f = create_right_hand_side(setup, psolver)
u0 = random_field(setup)
tspan = (0.0, 1.0) # time span where to solve.
problem = ODEProblem(f, u0, tspan) #SciMLBase.ODEProblem
Expand All @@ -46,7 +46,7 @@ Alternatively, it is also possible to use an [in-place formulation](https://docs
```@example
du = similar(u)
t = 0.0
f(du,u,p,t) = right_hand_side!(du, u, Ref([setup, psolver]), t)
f!(du,u,p,t) = right_hand_side!(du, u, Ref([setup, psolver]), t)
```
that is usually faster than the out-of-place formulation.

Expand Down

0 comments on commit cdbec55

Please sign in to comment.