[petsc-users] Storing a matrix in PETSc binary form?
John Chludzinski
jchludzinski at gmail.com
Tue Jul 12 23:49:21 CDT 2011
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>
More information about the petsc-users
mailing list