On Wed, Mar 12, 2025 at 4:34 PM Eric Chamberland via petsc-users < petsc-users@mcs.anl.gov> wrote:
> Hi, > > just a naive question: looking at KSPPYTHON and PCPYTHON, we saw that > there is only 1 example available. > > We are asking ourself: is it still supported and can we start > developping ou PCs and KSPs on top of it? > > Or is there a "new" replacement for these? > I think the reason that there are so few examples is that many examples exist in other packages, such as Firedrake, and they are the main consumers. KSPPYTHON is a way to write KSPSHELL using Python rather than C, and we mostly write C. I will say that recently we fixed everything so that PETSc errors and Python exceptions are passed correctly up the stack, and debugging these things should be easy. I have been debugging the PyVista visualization, and I can change the Python in one window and run in the other. It is easy. Thanks, Matt > Thanks, > > Eric > > -- > Eric Chamberland, ing., M. Ing > Professionnel de recherche > GIREF/Université Laval > (418) 656-2131 poste 41 22 42 > > -- 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://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!bga88b0gb6cn6ZpZ9yaQxOngfDa9uXuUaWs5sX_wq6Qa259hB-AVBEUw3b1DUvrlGybsQzMitII4Bxx8iF9g$ <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!bga88b0gb6cn6ZpZ9yaQxOngfDa9uXuUaWs5sX_wq6Qa259hB-AVBEUw3b1DUvrlGybsQzMitII4B76VGJyr$ >