[petsc-users] petsc_with_c++_python

govind sharma gsharma4189 at gmail.com
Wed Sep 8 13:38:02 CDT 2021


Hi Smith,

This would be quite okay if we take poisson 2d equation as a starting point
and then we can move forward.


Govind

On Wed, 8 Sep 2021, 8:42 pm govind sharma, <gsharma4189 at gmail.com> wrote:

> Thanks Smith,
>
>
> https://github.com/pyHPC/pyhpc-tutorial/blob/master/examples/scale/2D%20Cavity%20Flow%20using%20petsc4py.ipynb
>
>
> This is actually a repository.  Yes, We can work.
>
>
> Govind
>
> On Wed, 8 Sep 2021, 7:19 pm Barry Smith, <bsmith at petsc.dev> wrote:
>
>>
>>     This should be possible, not really different than using C (instead
>> of C++). Please send the example by Aron group and we may have suggestions.
>>
>>   Barry
>>
>>
>> > On Sep 8, 2021, at 6:27 AM, govind sharma <gsharma4189 at gmail.com>
>> wrote:
>> >
>> > Hi,
>> >
>> > I need a 2d poisson solver such that I can use petsc objects between
>> C++ and python interactively. I explain this way:
>> >
>> > -->1 Let's 2D poisson solver written in C++ with petsc
>> > -->2 With python notebook interact with solve in parallel with petscpy
>> > --> IPython parallel
>> >
>> > I have seen an example of doing this type by Aron group with C but I
>> find it incomprehensible  to understand.
>> >
>> > Can I get some clarification on this? How do I proceed?
>> >
>> >
>> > Regards,
>> > Govind
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20210909/11c895d8/attachment.html>


More information about the petsc-users mailing list