Cannot create a Function with firedrake-adjoint when using a MixedFunctionSpace
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dolfin-adjoint |
Fix Committed
|
High
|
Simon Funke |
Bug Description
I'm trying to use firedrake-adjoint with my shallow water model. However, I receive the following error message when trying to instantiate a Function object using a MixedFunctionSpace:
"christian@elevate ~ $ python test_fd_adjoint.py
Info : Increasing process stack size (8192 kB < 16 MB)
Traceback (most recent call last):
File "test_fd_
mixed_function = Function(W)
File "/data/
assign.
File "/data/
assert op is not None
AssertionError"
The following code reproduces the error:
"from firedrake import *
from firedrake_adjoint import *
mesh = UnitSquareMesh(10, 10)
fs_1 = FunctionSpace(mesh, "CG", 2)
fs_2 = FunctionSpace(mesh, "CG", 1)
W = MixedFunctionSp
mixed_function = Function(W)"
Firedrake version: 0.9.0
DOLFIN version: 1.0.0
DOLFIN-adjoint version: 0.6
libadjoint version: 0.9.3
MixedFunctionSpaces have not been implemented in firedrake-adjoint yet.
I will have a look at it once I have a working firedrake installation again.