[petsc-users] Modify RHS values at each iteration

TAY wee-beng zonexo at gmail.com
Thu Nov 21 00:04:24 CST 2013


Hi,

Due to a special case, I need modify RHS values of the system of eqns at 
each iteration.

Hence, what I can do is to solve the eqn using KSPSolve, limit the 
maxits in KSPSetTolerances to 1, modify the RHS, and then run KSPSolve 
again.

It will loop until it reaches the convergences I specify.

My question is if that's the only way, and will it suffer a large drop 
in speed?

Thank you!

-- 
Yours sincerely,

TAY wee-beng



More information about the petsc-users mailing list