4
"Test time-stepping with initial data expression."
7
mesh = UnitSquare(32, 32)
8
V = FunctionSpace(mesh, "Lagrange", 1)
9
u0 = Function(V, "sin(x[0])")
20
# Assign u0 = u1 (works fine)
24
"Test time-stepping with time-dependent coefficient expression."
27
mesh = UnitSquare(32, 32)
28
V = FunctionSpace(mesh, "Lagrange", 1)
30
w1 = Function(V, "sin(t*x[0])")
44
# Assign w0 = w1 (does not work)
46
#w0 = interpolate(w1, V)