Yes. You can run with -poisson_ksp_view and -options_left to make sure the 
options you provide are actually used.

   Barry

On Mar 17, 2014, at 9:39 AM, TAY wee-beng <[email protected]> wrote:

> Hi,
> 
> I use
> 
> call KSPSetOptionsPrefix(ksp_semi_xyz,"momentum_",ierr)
> 
> and
> 
> call KSPSetOptionsPrefix(ksp,"poisson_",ierr)
> 
> so that I can choose separate ksp/pc options for my momentum and poisson 
> equations through command line e.g.
> 
> -poisson_ksp_type gmres -poisson_pc_type hypre -poisson_pc_type_hypre 
> boomeramg
> 
> In general, I need to use boomeramg as the preconditioner and gmres as the 
> solver for my poisson eqn, separate from my momentum eqn, which has its own 
> default pc and ksp. Is the above the correct way?
> 
> Thanks!
> 
> -- 
> Yours sincerely,
> 
> TAY wee-beng
> 

Reply via email to