Read matrix

Tim Kröger tim at cevis.uni-bremen.de
Mon Jul 23 04:23:28 CDT 2007


Dear Knut,

On Mon, 23 Jul 2007, Knut Erik Teigen wrote:

> Can't you just use MatView, with a file writer viewer? You can save to
> both ASCII and binary files, using PetscViewerASCIIOpen and
> PetscViewerBinaryOpen.

Thank you for your answer.  I did not know the MatView() function. 
Anyway, I found out what I did wrong: I forgot to call MatRestoreRow() 
each time.

Best Regards,

Tim

-- 
Dr. Tim Kroeger                            Phone +49-421-218-7710
tim at mevis.de, tim at cevis.uni-bremen.de      Fax   +49-421-218-4236

MeVis Research GmbH, Universitaetsallee 29, D-28359 Bremen, Germany

Amtsgericht Bremen HRB 16222
Geschaeftsfuehrer: Prof. Dr. H.-O. Peitgen




More information about the petsc-users mailing list