How to set '_pc_factor_shift_postive_define' not in runtime?

Matthew Knepley knepley at gmail.com
Sat Aug 16 06:47:49 CDT 2008


http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/PC/PCFactorSetShiftPd.html

   Matt

On Sat, Aug 16, 2008 at 4:38 AM, Shengyong <lua.byhh at gmail.com> wrote:
> Hi,
>
> I am going to solve a variable coefficient Poisson equation with ICCG
> method, ie, the pc-type is icc while the ksp type is pcg.  I have found
> functions in petsc library for setting such options.  But how to set this
> type of options for PC object,  for instance ,'
> _pc_factor_shift_positive_define' not in runtime?  Which functions should I
> call if I want to set this type of option previous in an exectuable
> program.  Because It is not so convient for me to use runtime options on
> Windows.
>
> Best Regards,
>
>
> --
> Pang Shengyong
> Solidification Simulation Lab,
> State Key Lab of Mould & Die Technology,
> Huazhong Univ. of Sci. & Tech. China
>



-- 
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




More information about the petsc-users mailing list