dolfin_function2BoxField() problem

Asked by Mike Witt

Hi, I'm having this problem:

    u_box = scitools.BoxField.dolfin_function2BoxField(u2, mesh, (nx,ny), uniform_mesh=True)

Ends up giving the error:

    NameError: global name 'u' is not defined

Back on this page: https://bugs.launchpad.net/fenics/+bug/788522
it says that this is a bug in scitools. I'm currently on Ubuntu 12.04 Beta2 and my scitools appear to be 0.8-1
Should this still be a problem? Is there somewhere I can get a newer scitools?
Or is it likely that I'm doing something wrong?

Thanks!
-Mike

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Johannes Ring
Solved:
Last query:
Last reply:
Revision history for this message
Best Johannes Ring (johannr) said :
#1

Yes, this is unfortunately still a problem in the python-scitools package in Ubuntu. However, you can get an updated package from the SciTools PPA (https://launchpad.net/~scitools/+archive/ppa).

Revision history for this message
Mike Witt (msg2mw) said :
#2

Thanks, that worked.

Revision history for this message
Mike Witt (msg2mw) said :
#3

Thanks Johannes Ring, that solved my question.