Did you try checking your Jacobian using -snes_mf?<br><br> Matt<br><br><div class="gmail_quote">On Tue, Feb 9, 2010 at 12:21 PM, (Rebecca) Xuefei YUAN <span dir="ltr"><<a href="mailto:xy2102@columbia.edu">xy2102@columbia.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
The SNES convergence history shows the residual increases or stop decreasing starting at some iteration. I ran two different cases for the same code, and the history looks similar, what could be wrong with the code?<br>
<br>
Thanks very much!<br>
<br>
Case 1:<br>
0 SNES Function norm 9.593111354483e-01<br>
1 SNES Function norm 1.233321371555e-01<br>
2 SNES Function norm 2.926382110614e-02<br>
3 SNES Function norm 2.091318748212e-02<br>
4 SNES Function norm 1.047907743570e-02<br>
5 SNES Function norm 4.462043675959e-03<br>
6 SNES Function norm 1.851050848655e-03<br>
7 SNES Function norm 4.417550480988e-04<br>
8 SNES Function norm 1.736388356513e-04<br>
9 SNES Function norm 6.300414578098e-05<br>
10 SNES Function norm 1.929829710585e-05<br>
11 SNES Function norm 1.506367625001e-05<br>
12 SNES Function norm 1.480567720594e-05<br>
13 SNES Function norm 1.470754287980e-05<br>
14 SNES Function norm 1.461728595512e-05<br>
15 SNES Function norm 1.453616609384e-05<br>
16 SNES Function norm 1.441040320141e-05<br>
17 SNES Function norm 1.402352953635e-05<br>
18 SNES Function norm 1.343005745899e-05<br>
19 SNES Function norm 1.328043697395e-05<br>
20 SNES Function norm 1.327501784736e-05<br>
21 SNES Function norm 1.327431008405e-05<br>
22 SNES Function norm 1.327343169426e-05<br>
23 SNES Function norm 1.327273768560e-05<br>
24 SNES Function norm 1.327185496127e-05<br>
25 SNES Function norm 1.327119625499e-05<br>
26 SNES Function norm 1.327071509157e-05<br>
27 SNES Function norm 1.327038695378e-05<br>
28 SNES Function norm 1.326990549326e-05<br>
29 SNES Function norm 1.326917602672e-05<br>
30 SNES Function norm 1.326830723835e-05<br>
31 SNES Function norm 1.326796002362e-05<br>
32 SNES Function norm 1.326777827731e-05<br>
33 SNES Function norm 1.326755622116e-05<br>
34 SNES Function norm 1.326732752144e-05<br>
35 SNES Function norm 1.326698050145e-05<br>
36 SNES Function norm 1.326640877572e-05<br>
37 SNES Function norm 1.326587074902e-05<br>
38 SNES Function norm 1.326573931166e-05<br>
39 SNES Function norm 1.326564241601e-05<br>
40 SNES Function norm 1.326548432075e-05<br>
41 SNES Function norm 1.326531590041e-05<br>
42 SNES Function norm 1.326531590043e-05<br>
43 SNES Function norm 1.326531590045e-05<br>
44 SNES Function norm 1.326531590044e-05<br>
45 SNES Function norm 1.326531590044e-05<br>
46 SNES Function norm 1.326531590043e-05<br>
47 SNES Function norm 1.326531590045e-05<br>
48 SNES Function norm 1.326531590044e-05<br>
49 SNES Function norm 1.326531590046e-05<br>
50 SNES Function norm 1.326531590046e-05<br>
Nonlinear solve did not converge due to DIVERGED_MAX_IT<br>
<br>
case 2:<br>
0 SNES Function norm 1.489006328086e+00<br>
1 SNES Function norm 1.044141602147e-01<br>
2 SNES Function norm 2.662563646189e-02<br>
3 SNES Function norm 5.764005178654e-03<br>
4 SNES Function norm 2.493444656346e-03<br>
5 SNES Function norm 5.180475798178e-04<br>
6 SNES Function norm 4.166251801170e-04<br>
7 SNES Function norm 3.066582000814e-04<br>
8 SNES Function norm 2.189666367666e-04<br>
9 SNES Function norm 1.354684191244e-04<br>
10 SNES Function norm 1.287520392923e-04<br>
11 SNES Function norm 1.286080621054e-04<br>
12 SNES Function norm 1.285437650356e-04<br>
13 SNES Function norm 1.284168806812e-04<br>
14 SNES Function norm 1.283833115348e-04<br>
15 SNES Function norm 1.283700090330e-04<br>
16 SNES Function norm 1.283691578788e-04<br>
17 SNES Function norm 1.283486627334e-04<br>
18 SNES Function norm 1.283349991927e-04<br>
19 SNES Function norm 1.283332060308e-04<br>
20 SNES Function norm 1.283026682165e-04<br>
21 SNES Function norm 1.282981662835e-04<br>
22 SNES Function norm 1.282944044720e-04<br>
23 SNES Function norm 1.282831861627e-04<br>
24 SNES Function norm 1.282754274487e-04<br>
25 SNES Function norm 1.282754274487e-04<br>
26 SNES Function norm 1.282754274487e-04<br>
27 SNES Function norm 1.282754274487e-04<br>
28 SNES Function norm 1.282754274487e-04<br>
29 SNES Function norm 1.282754274487e-04<br>
30 SNES Function norm 1.282754274487e-04<br>
31 SNES Function norm 1.282754274487e-04<br>
32 SNES Function norm 1.282754274487e-04<br>
33 SNES Function norm 1.282754274487e-04<br>
34 SNES Function norm 1.282754274487e-04<br>
35 SNES Function norm 1.282754274487e-04<br>
36 SNES Function norm 1.282754274487e-04<br>
37 SNES Function norm 1.282754274487e-04<br>
38 SNES Function norm 1.282754274487e-04<br>
39 SNES Function norm 1.282754274487e-04<br>
40 SNES Function norm 1.282754274487e-04<br>
41 SNES Function norm 1.282754274487e-04<br>
42 SNES Function norm 1.282754274487e-04<br>
43 SNES Function norm 1.282754274487e-04<br>
44 SNES Function norm 1.282754274487e-04<br>
45 SNES Function norm 1.282754274487e-04<br>
46 SNES Function norm 1.282754274487e-04<br>
47 SNES Function norm 1.282754274487e-04<br>
48 SNES Function norm 1.282754274487e-04<br>
49 SNES Function norm 1.282754274487e-04<br>
50 SNES Function norm 1.282754274487e-04<br>
<br>
Thanks a lot!<br><font color="#888888">
<br>
-- <br>
(Rebecca) Xuefei YUAN<br>
Department of Applied Physics and Applied Mathematics<br>
Columbia University<br>
Tel:917-399-8032<br>
<a href="http://www.columbia.edu/%7Exy2102" target="_blank">www.columbia.edu/~xy2102</a><br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>