[petsc-users] writing native PETSc binaries in python

Ataollah Mesgarnejad amesga1 at tigers.lsu.edu
Fri Apr 27 10:28:41 CDT 2012


Thanks for the replies:

Just a bug report with petsc4py:

petsc4py which downloads with --download-petsc4py=1 is the older v1.1.1
which doesn't compile with petsc-dev?

Thanks,
Ata

On Fri, Apr 27, 2012 at 8:25 AM, Matthew Knepley <knepley at gmail.com> wrote:

> 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
>



-- 
A. Mesgarnejad
PhD Student, Research Assistant
Mechanical Engineering Department
Louisiana State University
2203 Patrick F. Taylor Hall
Baton Rouge, La 70803
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120427/cca3e1b6/attachment.htm>


More information about the petsc-users mailing list