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

(Rebecca) Xuefei YUAN xy2102 at columbia.edu
Mon Feb 8 14:45:51 CST 2010


Dear Matt,

Thanks!

R



Quoting Matthew Knepley <knepley at gmail.com>:

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



-- 
(Rebecca) Xuefei YUAN
Department of Applied Physics and Applied Mathematics
Columbia University
Tel:917-399-8032
www.columbia.edu/~xy2102



More information about the petsc-users mailing list