GenericVector.abs() returns NoneType
The GenericVector() class provides some useful operations for vectors. I would like to use the
abs() method but somehow it returns
sum() method, however, seems to work fine.
I get the output
when I run the following minimal example:
from fenics import * mesh = UnitSquareMesh(3,3) fe = FiniteElement('Lagrange',mesh.ufl_cell(),1) V = FunctionSpace(mesh, fe) v = TestFunction(V) f = Constant(5.0) rhs = f*v*dx b = assemble(rhs) print b.abs() print b.sum()
Is anyone able to reproduce this behaviour?