[petsc-users] Use block Jacobi preconditioner with SNES

Ali Reza Khaz'ali arkhazali at cc.iut.ac.ir
Mon Aug 27 04:14:07 CDT 2018


>
> I mean directly build the preconditioner with the required block 
> diagonal structure. Then do don't need to use something like PCBJACOBI 
> or PCASM to extract the block diagonal operator from your original 
> operator.
>

I know the block structure. I saved the block sizes in SadeqSize array, 
and I was trying to tell PCBJACOBI to use it:

ierr = PCBJacobiSetTotalBlocks(Petsc_pc, 2*Nx*Ny*Nz, SadeqSize);

Which based on previous communications, it seems to be incompatible with 
SNES, and PCBJacobiSetTotalBlocks function returned an error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20180827/380eff68/attachment.html>


More information about the petsc-users mailing list