<div dir="ltr"><div>Hi everyone,<br><br>I would like to use the Schwarz method with a few processors per subdomain, that is to say with parallel subksps. PCGASM seems to do this if I look at the example ksp/examples/tutorials/ex8g.c. The problem is that I didn't manage to choose the subksp and the subpc. I tried the example ex8g.c with the option -user_set_subdomains_solver to set explicitly KSPBCGS as subksp, and PCJACOBI as subpc and I get the following errors:<br>

<br>[0]PETSC ERROR: Null argument, when expecting valid pointer!<br>[0]PETSC ERROR: Null Object: Parameter # 1!<br>...<br>[0]PETSC ERROR: VecScatterBegin() line 1616 in /home/cdcsp/berenguer/PETSC_INSTALL/petsc-3.4.3/src/vec/vec/utils/vscat.c<br>

...<br>[0]PETSC ERROR: KSPSolve() line 441 in /home/cdcsp/berenguer/PETSC_INSTALL/petsc-3.4.3/src/ksp/ksp/interface/itfunc.c<br><br><br>Obviously, I am doing something wrong. Do you have any idea/suggestion?<br><br>Thank you,<br>

Laurent Berenguer<br><br>PS : You can find the full files in attachment, I used runex8g_2<br><br>
</div></div>