You are redefining u_n
, so as a fist step, i would suggest removing the last line of the code i quoted above, such that you only have
u_n = interpolate(u_0, V)
u_n1, u_n2 = split(u_n)
You are redefining u_n
, so as a fist step, i would suggest removing the last line of the code i quoted above, such that you only have
u_n = interpolate(u_0, V)
u_n1, u_n2 = split(u_n)