Assign and mixed space #3953
Unanswered
cjham
asked this question in
Firedrake support
Replies: 2 comments 1 reply
-
Try with
|
Beta Was this translation helpful? Give feedback.
1 reply
-
You'll need to give a name to the whole
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am trying to solve a nonlinear problem which has two scalar variables. I have set up a mixed function space
V = FunctionSpace(mesh, "CG", 1)
W = V * V
psi, alpha = Function(W)
u, v = TestFunction(W)
I need to assign an initial condition
ic = Function(W)
ic = Constant(0.0)
psi.assign(ic)
alpha.assign(ic)
But I get an error: 'Indexed' object has no attribute 'assign'. Please can you help?
Beta Was this translation helpful? Give feedback.
All reactions