[petsc-users] (no subject)

Chung-Kan Huang ckhuangf at gmail.com
Fri Feb 21 14:34:03 CST 2014


Hello,

In my application I like to use
PetscErrorCode  KSPSetOperators(KSP ksp,Mat Amat,Mat Pmat,MatStructure flag)
and have Pmat different from Amat

if Amat = L + D + U
then Pmat  = Amat  - L* - U* + rowsum(L* + U*)
where L* and U* is a portion of L and U and rowsum(L* + U*) will add into D

I know I can explicitly construct Pmat step-by-step but wonder what will be
the most easy way to do this in PETSC?

Thanks,


Kan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140221/2c393d14/attachment.html>


More information about the petsc-users mailing list