Hi
I have to solve MixedFunctionSpace instead of FunctionSapce example like d6_pD2.py.
But when i solve Convergence rates like
degree = int(sys.argv[1])
h = []
E = []
for nx in [4, 8, 16, 32, 64, 128, 264]:
h.append(1.0/nx)
E.append(compute(nx, nx, degree))
from math import log as ln
for i in range(1, ln(E)):
r = ln(E[i]/E[i-1])/ln(h[i]/h[i-1])
print 'h=%10.2E E=%8.2E r=%.2f' % (h[i], error, r)
i get error on float like given below
Solving linear variational problem.
Traceback (most recent call last):
File "d6_pD2.py", line 145, in
for i in range(1, ln(E)):
TypeError: a float is required
I searched in FEniCS and launchpad, but i couldn't get idea about this.
Anybody clarify this to me?
Thank you