[firedrake] FD on mac
Miklós Homolya
m.homolya14 at imperial.ac.uk
Mon Nov 30 10:22:27 GMT 2015
Didn't you accidentally mix up v (small V) and V (capital V)?
We conventionally use V for the function space, but v for test function.
On 30/11/15 10:20, Angwenyi David wrote:
> Hi all,
>
> Thank you so much; it is working on my pc.
>
> I have been going through the tutorials. However, I got an error in
> writing the ic for the Burgers equation:
>
> >>> ic = project(Expression(["sin(pi*x[0])", 0]), V)
>
> Traceback (most recent call last):
>
> File "<stdin>", line 1, in <module>
>
> File
> "/Users/master/firedrake/lib/python2.7/site-packages/firedrake/projection.py",
> line 50, in project
>
> % type(V))
>
> RuntimeError: Can only project into functions and function spaces, not
> <class 'firedrake.ufl_expr.Argument'>
>
>
> How can I fix this?
>
>
> On 24 November 2015 at 13:11, Lawrence Mitchell
> <lawrence.mitchell at imperial.ac.uk
> <mailto:lawrence.mitchell at imperial.ac.uk>> wrote:
>
>
> On 23/11/15 16:52, Wingate, Beth wrote:
> > module = imp.load_module(fullname, fo, fn, stuff)
> > ImportError:
> >
> dlopen(/Users/wingate/firedrake/lib/python2.7/site-packages/petsc4py/lib/PETSc.so,
> > 2): Library not loaded:
> >
> /private/var/folders/rw/1wgmdvd50sv7bb1dksy4y_l00000gq/T/pip-DOH6bI-build/arch-python-macosx-10.11-x86_64/lib/libpetsc.3.06.dylib
> > Referenced from:
> >
> /Users/wingate/firedrake/lib/python2.7/site-packages/petsc4py/lib/PETSc.so
> > Reason: image not found
>
>
> Hmph, petsc4py has linked against the temporary location of libpetsc
> (which appeared via pip presumably), rather than its final location.
>
> It is not immediately obvious to me why this would be the case. I do
> not think it is likely anything wrong with your build setup though.
>
> Lawrence
>
>
> _______________________________________________
> firedrake mailing list
> firedrake at imperial.ac.uk <mailto:firedrake at imperial.ac.uk>
> https://mailman.ic.ac.uk/mailman/listinfo/firedrake
>
>
>
>
> _______________________________________________
> firedrake mailing list
> firedrake at imperial.ac.uk
> https://mailman.ic.ac.uk/mailman/listinfo/firedrake
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the firedrake
mailing list