[petsc-users] petsc4py, plotting DA and writing to file

Amal Alghamdi amal.ghamdi at kaust.edu.sa
Mon Sep 27 19:35:38 CDT 2010


Thank you very much
Amal

On Mon, Sep 27, 2010 at 10:57 PM, Lisandro Dalcin <dalcinl at gmail.com> wrote:

> On 27 September 2010 14:34, Amal Alghamdi <amal.ghamdi at kaust.edu.sa>
> wrote:
> > Thank you very much everybody for the prompt help.
> > Amal
> >
>
> I've just pushed a new demo: matrix-free Poisson 2D
>
> http://code.google.com/p/petsc4py/source/browse/demo/poisson2d/poisson2d.py
>
>
> At the very end you have:
>
>    draw = PETSc.Viewer.DRAW(x.comm)
>    OptDB['draw_pause'] = 1
>    draw(x)
>
> Additionally, I've updated other demos. Take a look here for
> matplotlib usage gathering values to processor 0:
>
> http://code.google.com/p/petsc4py/source/browse/demo/bratu3d/bratu3d.py
>
> (note that this demo is 3D, I'm plotting the solution at plane Z=0.5)
>
>
>
> --
> Lisandro Dalcin
> ---------------
> CIMEC (INTEC/CONICET-UNL)
> Predio CONICET-Santa Fe
> Colectora RN 168 Km 472, Paraje El Pozo
> Tel: +54-342-4511594 (ext 1011)
> Tel/Fax: +54-342-4511169
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20100928/9b372adf/attachment.htm>


More information about the petsc-users mailing list