Skip to content

Commit

Permalink
updated brusselator with ## comments to abide by Literate.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
quffaro committed Apr 9, 2024
1 parent 5a7615d commit 67f20b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/chemistry/brusselator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ Point2D = Point2{Float64}
Point3D = Point3{Float64}

Brusselator = @decapode begin
# Values living on vertices.
## Values living on vertices.
(U, V)::Form0{X} # State variables.
(U2V)::Form0{X} # Named intermediate variables.
(U̇, V̇)::Form0{X} # Tangent variables.
# Scalars.
## Scalars.
(α)::Constant{X}
F::Parameter{X}
# A named intermediate variable.
## A named intermediate variable.
U2V == (U .* U) .* V
# Specify how to compute the tangent variables.
## Specify how to compute the tangent variables.
== 1 + U2V - (4.4 * U) +* Δ(U)) + F
== (3.4 * U) - U2V +* Δ(U))
# Associate tangent variables with a state variable.
## Associate tangent variables with a state variable.
∂ₜ(U) ==
∂ₜ(V) ==
end
Expand Down

0 comments on commit 67f20b8

Please sign in to comment.