Skip to content

Commit ced594f

Browse files
committed
fix exercise_03
1 parent 052ab3e commit ced594f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercise_03_intro_accelerated.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ $\frac{\partial U}{\partial t} = a * (\frac{\partial^2 U}{\partial x^2} + \frac{
230230
231231
Using a finite-difference approximation:
232232
233-
$dU = a * dt * (\frac{U[i+1, j] - 2U[i,j] + U[i-1,j]}{dx^2} + \frac{U[i, j+1] - 2U[i,j] + U[i,j-1]}{dy^2} )$
233+
$dU = a * (\frac{U[i+1, j] - 2U[i,j] + U[i-1,j]}{dx^2} + \frac{U[i, j+1] - 2U[i,j] + U[i,j-1]}{dy^2} )$
234234
235235
!!! note
236236
The code below implements the harness using OffsetArrays and wrap around boundary conditions to make your life easier.

0 commit comments

Comments
 (0)