Works for me. Maybe instant-clean might help? -- Anders
On Mon, Feb 01, 2010 at 04:12:28PM +0000, Harish Narayanan wrote: > I am now running into the following strange error. Upon the first run of > the following python code: > > from dolfin import * > > mesh = UnitSquare(4, 4) > BDM = FunctionSpace(mesh, "BDM", 1) > DG = FunctionSpace(mesh, "DG", 0) > mixed_space = MixedFunctionSpace([BDM, DG]) > > u, p = Function(mixed_space).split() > > uh = project(u) > ph = project(p) > > I receive an error of the following sort. But upon subsequent runs, it > gets picked up from cache correctly and runs without complaining. > > raceback (most recent call last): > File "trial3.py", line 11, in <module> > ph = project(p) > File "fenics-path/lib/python2.5/site-packages/dolfin/fem/project.py", > line 42, in project > V = _extract_function_space(v) > File "fenics-path/lib/python2.5/site-packages/dolfin/fem/project.py", > line 84, in _extract_function_space > V = FunctionSpace(mesh, "CG", 1) > File > "fenics-path/lib/python2.5/site-packages/dolfin/function/functionspace.py", > line 226, in __init__ > FunctionSpaceBase.__init__(self, mesh, element) > File > "fenics-path/lib/python2.5/site-packages/dolfin/function/functionspace.py", > line 44, in __init__ > ufc_element, ufc_dofmap = jit(self._ufl_element) > File > "fenics-path/lib/python2.5/site-packages/dolfin/compilemodules/jit.py", > line 44, in mpi_jit > return local_jit(*args, **kwargs) > File > "fenics-path/lib/python2.5/site-packages/dolfin/compilemodules/jit.py", > line 103, in jit > return jit_compile(form, parameters=p) > File "fenics-path/lib/python2.5/site-packages/ffc/jit.py", line 59, in jit > return jit_element(object, parameters) > File "fenics-path/lib/python2.5/site-packages/ffc/jit.py", line 147, > in jit_element > return _extract_element_and_dofmap(module, form_data) > File "fenics-path/lib/python2.5/site-packages/ffc/jit.py", line 179, > in _extract_element_and_dofmap > return (getattr(module, module.__name__ + ("_finite_element_%d" % i))(), > AttributeError: 'module' object has no attribute > 'form_8c658e9e24652ee956904c0c5a2f5dc9e2b97c2b_finite_element_2 > > _______________________________________________ > Mailing list: https://launchpad.net/~ffc > Post to : ffc@lists.launchpad.net > Unsubscribe : https://launchpad.net/~ffc > More help : https://help.launchpad.net/ListHelp
signature.asc
Description: Digital signature
_______________________________________________ Mailing list: https://launchpad.net/~ffc Post to : ffc@lists.launchpad.net Unsubscribe : https://launchpad.net/~ffc More help : https://help.launchpad.net/ListHelp