← Back to team overview

dolfin team mailing list archive

Re: dolfin <-> scipy <-> pyamg

 

> 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.

Kent

>
> I use Andrew Straws Ubuntu packages for SciPy, version 0.7.0.dev and
> NumPy,
> version 1.2.1. These packages are found at:
>
>   deb http://debs.astraw.com/ hardy/
>
>
> Johan
>
>> Should we add a webpage at  www.fenics.org where we list up software
>> packages that
>> can be used with FEniCS software (and nice examples where possible).
>> There are quite a few, eg.  VMTK and Netgen can create meshes.
>> Itk/Debiosee is getting some support at the moment. Scipy and PyAMG. Of
>> course all the linear algebra backends and  mesh formats etc.
>>
>> Kent
>
>
>




Follow ups

References