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

Lisandro Dalcin dalcinl at gmail.com
Mon Sep 27 14:57:37 CDT 2010


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


More information about the petsc-users mailing list