Skip to content

Commit 63bb632

Browse files
committed
Adjust solver_FECS
1 parent b8a8755 commit 63bb632

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

fdm-devito-notebooks/04_advec/src-advec/advec1D.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ def solver_FECS(I, U0, v, L, dt, C, T, user_action=None):
2929
u.data[1, :] = [I(xi) for xi in x]
3030

3131
# Insert boundary condition
32-
bc = [Eq(u[t_s, 0], U0)]
32+
bc = [Eq(u[t_s+1, 0], U0)]
3333

3434
op = Operator([eq] + bc)
35-
op.apply(time_m=1, dt=dt)
35+
op.apply(dt=dt, x_m=1, x_M=Nx-1)
36+
3637
if user_action is not None:
3738
for n in range(0, Nt + 1):
3839
user_action(u.data[n], x, t, n)

0 commit comments

Comments
 (0)