[petsc-users] writing native PETSc binaries in python
Matthew Knepley
knepley at gmail.com
Fri Apr 27 08:25:01 CDT 2012
On Fri, Apr 27, 2012 at 9:19 AM, Ataollah Mesgarnejad <
amesga1 at tigers.lsu.edu> wrote:
> Dear all,
>
> I was wondering if there is way to write numpy arrays as native PETSc
> binaries in python so I can open them inside my program with VecView?
>
I think what you want is to create a Vec using that array in petsc4py.
Matt
> Thanks,
> Ata
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120427/bab6eda8/attachment-0001.htm>
More information about the petsc-users
mailing list