On 27 September 2010 13:54, Jed Brown <jed at 59a2.org> wrote: > On Mon, Sep 27, 2010 at 18:47, Lisandro Dalcin <dalcinl at gmail.com> wrote: >> viewer = PETSc.Viewer.DRAW(globalvec.comm) >> globalvec.view(viewer) # or viewer(globalvec) > > What do you think about having a top-level matplotlib viewer?
Yes, we could have it, and a VisIt plugin, and a ParaView one, and what about Mayavi, and <put here your preferred viewer>... This could go to a separate petsc4py.plotting module (I prefer to not contaminate the petsc4py.PETSc namespace with stuff that is not pure-PETSc) >?Ideally > it would have an option to drop you into an interactive python session > after the initial view. > Could you elaborate? > I know this brings up the multiple dispatch problem, since the viewer > would naturally be distributed with petsc4p, but then you don't get to > modify the case statement in VecView_XX. > Sorry, now I'm confused. Are you suggesting this for petsc4py, or core PETSc? -- 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
