[petsc-users] matrix visualization problem

hxie at umn.edu hxie at umn.edu
Wed Dec 23 17:42:53 CST 2009


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