[petsc-users] could I update the user-defined parameters after each linear iteration?

Matthew Knepley knepley at gmail.com
Mon Feb 8 14:44:44 CST 2010


DMMGGetSNES() and SNESGetKSP()

  Matt

On Mon, Feb 8, 2010 at 2:40 PM, (Rebecca) Xuefei YUAN
<xy2102 at columbia.edu>wrote:

> Dear all,
>
> KSPSolve() is called through the following,
> #0  KSPSolve (ksp=0x899cf20, b=0x8987a70, x=0x89f9990) at itfunc.c:299
> #1  0x08069e0c in SNES_KSPSolve (snes=0x89958c0, ksp=0x899cf20,
> b=0x8987a70, x=0x89f9990) at snes.c:2931
> #2  0x08085639 in SNESSolve_LS (snes=0x89958c0) at ls.c:191
> #3  0x08065074 in SNESSolve (snes=0x89958c0, b=0x0, x=0x8988e30) at
> snes.c:2242
> #4  0x0807ebf9 in DMMGSolveSNES (dmmg=0x89aad90, level=0) at damgsnes.c:510
> #5  0x080780f1 in DMMGSolve (dmmg=0x89aad90) at damg.c:313
> #6  0x0804d577 in Solve (dmmg=0x89aad90) at twmgvggtnivexc.c:247
> #7  0x0804cea4 in main (argc=-2080374784, argv=0x1) at twmgvggtnivexc.c:191
>
> Is there any way I can update the user-defined parameters inside after each
> linear iteration is done?
>
> Thanks a lot!
>
> --
> (Rebecca) Xuefei YUAN
> Department of Applied Physics and Applied Mathematics
> Columbia University
> Tel:917-399-8032
> www.columbia.edu/~xy2102 <http://www.columbia.edu/%7Exy2102>
>
>


-- 
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/20100208/ecd00026/attachment.htm>


More information about the petsc-users mailing list