[petsc-users] Using HYPRE AMG for only one of the linear eqns

TAY wee-beng zonexo at gmail.com
Sat Dec 24 07:42:54 CST 2011


Hi,

I am solving 4 linear equations in my cfd code. I have declared them as:

KSP   ksp,ksp_semi_x,ksp_semi_y,ksp_semi_z

PC    pc,pc_semi_x,pc_semi_y,pc_semi_z

PCType      ptype

KSPType        ksptype

However, I only want to solve the 1st eqn via hypre (thru command 
prompt), and the others via KSPBCGS.

I now add:

ksp_type richardson -pc_type hypre -pc_type_hypre boomeramg

Are all the eqns now solved using hypre?

How should I specify in the command prompt?


-- 
Yours sincerely,

TAY wee-beng



More information about the petsc-users mailing list