[petsc-users] Using HYPRE AMG for only one of the linear eqns
Matthew Knepley
knepley at gmail.com
Sat Dec 24 08:07:52 CST 2011
On Sat, Dec 24, 2011 at 7:42 AM, TAY wee-beng <zonexo at gmail.com> wrote:
> 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?
Are you using DMDA? If so, its easy to do PCFIELDSPLIT from the command
line.
Matt
>
>
> --
> Yours sincerely,
>
> TAY wee-beng
>
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111224/90ac83b4/attachment.htm>
More information about the petsc-users
mailing list