[petsc-users] GAMG PC dependence on right-hand side

Jed Brown jedbrown at mcs.anl.gov
Thu Jul 11 16:00:35 CDT 2013


John Mousel <john.mousel at gmail.com> writes:

> I have two KSP contexts, helm%ksp and proj%ksp. I switch between the two by
> calling KSPSetOperators. 

Why call KSPSetOperators?  You should be able to call KSPSetOperators
once for helm%ksp and once for proj%ksp, then just call

for each step:
  KSPSolve(helm%ksp, new_rhs, x)
  update new_rhs
  KSPSolve(proj%ksp, new_rhs, y)

> There was no performance difference, just a different answer.

Okay, but both equally accurate up to your convergence tolerance?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130711/b2550eca/attachment.pgp>


More information about the petsc-users mailing list