Skip to content

Commit bebbd0e

Browse files
authored
Update README.md
1 parent 48a2b8c commit bebbd0e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ idx = (x .>= 0.4) .& (x .<= 0.6)
7373
c0_vec[idx] .= (1 / 6) .* (F(x[idx], α, v - δ) .+ 4 .* F(x[idx], α, v) .+ F(x[idx], α, v + δ))
7474

7575
c = copy(c0_vec)
76-
# here we create a WENO scheme for staggered grid, boundary (2,2) means periodic BCs on both sides. 0 means homogeneous Neumann and 1 means homogeneous Dirichlet BCs. stag = true means that the advection velocity is defined on the sides of the cells and should be of size nx+1 compared to the scalar field u.
76+
# here we create a WENO scheme for staggered grid, boundary (2,2) means periodic BCs on both sides.
77+
# 0 means homogeneous Neumann and 1 means homogeneous Dirichlet BCs.
78+
# stag = true means that the advection velocity is defined on the sides
79+
# of the cells and should be of size nx+1 compared to the scalar field u.
7780
weno = WENOScheme(c; boundary = (2, 2), stag = true)
7881

7982
# advection velocity, here we use a constant velocity of 1.0.
@@ -90,7 +93,8 @@ t = 0
9093

9194
# timeloop
9295
while t < tmax
93-
# here, u is updated in place and contains the solution at the next time step after the call to WENO_step!
96+
# here, u is updated in place and contains the solution
97+
# at the next time step after the call to WENO_step!
9498
WENO_step!(c, v, weno, Δt, Δx)
9599

96100
t += Δt

0 commit comments

Comments
 (0)