You are not missing anything. The petsc4py stub for SNESNASMSetSubdomains() 
has not been written. You could add it by adding to
src/petsc4py/PETSc/SNES.pyx and src/petsc4py/PETSc/petscsnes.pxi and then make 
a merge request  https://petsc.org/release/developers/contributing/ to get it 
into PETSc.

> On Jun 22, 2023, at 1:54 PM, Karin&NiKo <niko.ka...@gmail.com> wrote:
> 
> Dear PETSc team,
> 
> I would like to play with aspin-type nonlinear solvers. I have found several 
> tests like snes/tutorials/ex19.c but they all use DA, which I don't want to 
> use since I need to stick at the algebraic level.
> Then, I started looking at petsc4py/demo/ode/heat.py and tried to set up 
> things.
> Unfortunately, I get the error "DM has no default decomposition defined.  Set 
> subsolves manually with SNESNASMSetSubdomains()" which, I think, I do 
> understand.
> But I do not find any implementation of the SNESNASMSetSubdomains in 
> petsc4py. 
> Am I missing something ? 
> Thanks,
> Nicolas

Reply via email to