PETSc from python

Matthew Knepley knepley at gmail.com
Wed Aug 16 06:07:42 CDT 2006


On 8/15/06, Marek Wojciechowski <mwojc at p.lodz.pl> wrote:
> >> > There are nice Python bindings from
> >> >
> >> >   http://lineal.developer.nicta.com.au/
>
> I inspected a bit lineal but it also seems to be a work in progress...
> There is no official release and the project is currently hibernated (as i
> was told at their mailing list). The approach presented there is
> interesting, but far from the python high level programming spirit (for
> now). Instead, C constructs are used almost directly in python
> interpreter. This has one advantage that the PETSc examples can be easy
> translated to python.
>
> For now I found that it is quite good idea to use PETSc python bindings
> alongside with the parallelized python interpreter "bwpython"
> (http://www.cimec.org.ar/python/python.html) and python mpi bindings
> "mpi4py" (http://www.cimec.org.ar/python/mpi4py.html). I'm able now to run
> interactive sessions with PETSc and I have also access to all MPI
> functions which are not accessible from your PETSc bindings (AFAIK).

This is very interesting. I also know Lisandro who wrote bwpython. I just had
a user have the opposite experience with these packages, but I guess that
is why we have multiple packages. I am very happy you got this going. If we
can help out with anything else, just mail (and it won't take so long
next time).

   Thanks,

      Matt

> Greetings
>
> --
> Marek Wojciechowski
>
>


-- 
"Failure has a thousand explanations. Success doesn't need one" -- Sir
Alec Guiness




More information about the petsc-users mailing list