fread( (void *)K, sizeof(double), SIZE*SIZE, fpK ) On Wed, Jul 13, 2011 at 12:41 AM, John Chludzinski <jchludzinski at gmail.com>wrote:
> I have a matrix stored as a sequential list of binary values (not PETSc > binary form) that I read in with a single block read: > > read( (void *)K, sizeof(double), SIZE*SIZE, fpK ). > > How do I convert this simple binary file of (sequentially stored) doubles > into a "PETSc binary matrix file"? > > ---John > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110713/0adebb4d/attachment.htm>
