[petsc-users] A good way of dealing data

Jed Brown jed at 59A2.org
Tue Apr 27 05:31:31 CDT 2010


On Tue, 27 Apr 2010 05:44:40 -0400, "(Rebecca) Xuefei YUAN" <xy2102 at columbia.edu> wrote:
> Dear all,
> 
> If I save my data file as a binary file from Petsc,i.e.,
> 
> ierr =  
> PetscViewerBinaryOpen(PETSC_COMM_WORLD,fileName,FILE_MODE_WRITE,&viewer);CHKERRQ(ierr);
> 
> How could I deal(get access to) with my data with a c/c++ code?

In what context?  Normally you would open a binary viewer for reading
and load the vectors/matrices/etc that were written above.

Jed


More information about the petsc-users mailing list