Form fails to compile after bzr pull on trunk
I pulled an update today and I am no longer able to compile my forms. A simple example that was working before the update:
element = FiniteElement(
#Q : Value
q = Coefficient(
u = TrialFunction(
w = TestFunction(
# X-dimension
x = interval.x
a = u*w*x*x*dx
L = grad(q)*w*x*x*dx
The output:
Product can only represent products of scalars.
Traceback (most recent call last):
File "/usr/local/
sys.
File "/usr/local/
ufd = load_ufl_
File "/usr/local/
namespace = execute_
File "/usr/local/
m = __import_
File "/media/
a = u*w*x*x*dx
File "/usr/local/
return _mult(self, o)
File "/usr/local/
p = Product(a, b[ii])
File "/usr/local/
error("Product can only represent products of scalars.")
File "/usr/local/
raise self._exception
ufl.log.
If I remove the coordinate terms:
element = FiniteElement(
#Q : Value
q = Coefficient(
u = TrialFunction(
w = TestFunction(
# X-dimension
x = interval.x
a = u*w*dx
L = grad(q)*w*dx
I get:
Trying to integrate expression of rank 1 with free indices ().
Traceback (most recent call last):
File "/usr/local/
sys.
File "/usr/local/
ufd = load_ufl_
File "/usr/local/
namespace = execute_
File "/usr/local/
m = __import_
File "/media/
L = grad(q)*w*dx
File "/usr/local/
% (integrand.rank(), integrand.
File "/usr/local/
raise self._exception
ufl.log.
How should I massage the form(s)?
Thank you
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Charles
- Solved:
- Last query:
- Last reply: