[petsc-users] matrix visualization problem

Satish Balay balay at mcs.anl.gov
Wed Dec 23 18:01:02 CST 2009


Binary viewer is to dump the matrix into a file - not a mat_view_draw

wrt -mat_view_draw - I've already indicated what to do..

satish

On Wed, 23 Dec 2009, hxie at umn.edu wrote:

> Hi,
> 
> I put the following in my code:
> ------
>        PetscViewer  viewer               ...
>       call
> PetscViewerBinaryOpen(PETSC_COMM_WORLD,"matrix.dat",FILE_MODE_WRITE,viewer,pterr);
>        call MatView(ptMat,viewer,pterr)
>        call PetscViewerDestroy(viewer,pterr)
> ------
> Still no window pops up. The code runs OK.
> 
> Bests,
> Hui
> 
> 
> 
> -----------------------
> For binary viewer - check mat/examples/tests/ex31.c
> 
> Satish
> ------------------------
> 



More information about the petsc-users mailing list