[petsc-users] [petsc4py] DMPlex and DT class

Matthew Knepley knepley at gmail.com
Tue May 29 16:21:59 CDT 2018


On Tue, May 29, 2018 at 1:14 PM, Valerio Barnabei <
valerio.barnabei at uniroma1.it> wrote:

> Hello,
> I'm trying to figure how to translate snes/ex12, snes/ex56, snes/ex62,
> snes/ex77 in python using petsc4py. Unfortunately I'm having trouble
> finding something analogue to the DT class of C++ PETSc, to call methods
> like PetscFECreateDefault and similar.
> Is this something that can be achieved using petsc4py?
> I mean, is there something included in DM, DMDA or DMPlex that takes care
> of the discretization of a generic value field that I'm missing? (As far as
> I can see and understand, no DT class is implemented in petsc4py)
> I hope i explained myself, unfortunately I'm still a new user.
>

Hi Valerio,

There are no Python interfaces for DT because it is all experimental code.
We have not yet agreed that this is
the correct way to do things, so its all my own C experimentation. I could
help you understand it to make Python
interfaces if you wanted to.

  Thanks,

    Matt


> Thanks in advance for your help.
>
> Best regards,
> Valerio
>
> ___________________________________________
> *Il tuo 5 diventa 1000*
> Fai crescere la tua università
> Dona il 5 per mille alla Sapienza
> Codice fiscale: *80209930587*
> https://www.uniroma1.it/it/pagina/fai-crescere-la-tua-univer
> sita-con-il-cinque-mille
>
>


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

https://www.cse.buffalo.edu/~knepley/ <http://www.caam.rice.edu/~mk51/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20180529/d693ed6b/attachment.html>


More information about the petsc-users mailing list