← Back to team overview

dolfin team mailing list archive

Re: dolfin <-> scipy <-> pyamg

 

On Wednesday 25 February 2009 09:55:34 kent-and@xxxxxxxxx wrote:
> > On Tuesday 24 February 2009 22:27:51 kent-and@xxxxxxxxx wrote:
> >> Did you know that dolfin can be used together with scipy and pyamg to
> >> solve
> >> the eg. the Poisson equation with AMG in Python. The attached example by
> >> Luke Olson does this! This is so cool!
> >
> > Agree!
> >
> > For some reason, I have to import scipy before everything else. Otherwise
> > it
> > will segfault together with PyDOLFIN. I have had this problem before too,
> > when I combine scipy and PyDOLFIN.
> >
> > Any clues?
>
> The numpy doc (http://numpy.scipy.org/numpydoc/numpy-13.html) says
> that one need to define PY_ARRAY_UNIQUE_SYMBOL prior to including
> numpy.
>
> I've added this now. Check if it helps.

No. 

However I am not sure we need to define it, as it says on the page you refer 
to that if the extension module resides in many files one should add it to 
each file. We have (unfortunatly ?) only one: cpp_wrap.cc

Well that is not strictly correct, we do have cpp_wrap.h, but this is only 
used in cpp_wrap.cc, or am I wrong here?

Johan


References