[petsc-users] How to dump the nonzero entries of matrix into a file?
hxie at umn.edu
hxie at umn.edu
Wed Dec 30 12:17:29 CST 2009
Hi,
Thanks. But if I try to dump it into an ascii file using the following:
---
call
PetscViewerASCIIOpen(PETSC_COMM_WORLD,"matrix.dat",FILE_MODE_WRITE,viewer,pterr)
call PetscViewerSetFormat(viewer,PETSC_VIEWER_ASCII_MATLAB,pterr)
call MatView(ptMat,viewer,pterr)
---
It gives some errors:
[0]PETSC ERROR: Caught signal number 10 BUS: Bus Error, possibly illegal
memory access
Bests,
Hui
More information about the petsc-users
mailing list