[petsc-users] KSP "randomly" not converging

Italo Tasso italo at tasso.com.br
Tue Jun 2 12:26:23 CDT 2015


I made a code to solve the Navier-Stokes equations, incompressible,
non-linear, all coupled, finite differences, staggered grid.

I am running the code with:

-ts_monitor -snes_monitor -ksp_monitor_true_residual -snes_converged_reason
-ksp_converged_reason -pc_type fieldsplit -pc_fieldsplit_type schur
-pc_fieldsplit_detect_saddle_point

It works very well most of the time. But in some cases, the solver halts
for a long time then KSP does not converge.

See output1.txt. It seems that the residual is already very small, close to
machine zero, but KSP doesn't stop.

So I added -ksp_atol 1e-10. See output2.txt. Now it fails on a different
time step.

I also tried -ksp_norm_type unpreconditioned. It works for this case (grid
size), but fail for other cases.

I also tried building the Jacobian and including null space. It fixes some
cases but causes others that worked before to fail. Seems really random.

It feels like this is related to the PC, because the code halts for a long
time at the first KSP step, then diverges.

Any suggestions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150602/cf79d733/attachment-0001.html>
-------------- next part --------------
0 TS dt 1 time 0
    0 SNES Function norm 4.253022803593e+02
      0 KSP preconditioned resid norm 1.598377068791e+01 true resid norm 4.253022803593e+02 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 1.527395460671e-04 true resid norm 1.824978619341e-03 ||r(i)||/||b|| 4.291015363941e-06
    Linear solve converged due to CONVERGED_RTOL iterations 1
    1 SNES Function norm 3.724738658496e+00
      0 KSP preconditioned resid norm 4.541655062749e-01 true resid norm 3.724738658496e+00 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 2.742053553611e-06 true resid norm 9.163350378091e-06 ||r(i)||/||b|| 2.460132432967e-06
    Linear solve converged due to CONVERGED_RTOL iterations 1
    2 SNES Function norm 7.570359357297e-05
      0 KSP preconditioned resid norm 9.031735278010e-06 true resid norm 7.570359357297e-05 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 3.561905648780e-11 true resid norm 1.167305855774e-10 ||r(i)||/||b|| 1.541942463602e-06
    Linear solve converged due to CONVERGED_RTOL iterations 1
    3 SNES Function norm 1.167090042251e-10
  Nonlinear solve converged due to CONVERGED_FNORM_RELATIVE iterations 3
1 TS dt 1 time 1
    0 SNES Function norm 2.653082379074e+00
      0 KSP preconditioned resid norm 2.077610485197e-01 true resid norm 2.653082379074e+00 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 9.769974416602e-07 true resid norm 2.473966590397e-05 ||r(i)||/||b|| 9.324876641260e-06
    Linear solve converged due to CONVERGED_RTOL iterations 1
    1 SNES Function norm 7.247455375157e-04
      0 KSP preconditioned resid norm 1.044465137677e-04 true resid norm 7.247455375157e-04 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 2.451030701351e-09 true resid norm 1.426395371133e-09 ||r(i)||/||b|| 1.968132671809e-06
      2 KSP preconditioned resid norm 5.832060027950e-15 true resid norm 1.573719406040e-12 ||r(i)||/||b|| 2.171409583886e-09
    Linear solve converged due to CONVERGED_RTOL iterations 2
    2 SNES Function norm 7.209185280340e-12
  Nonlinear solve converged due to CONVERGED_FNORM_RELATIVE iterations 2
2 TS dt 1 time 2
    0 SNES Function norm 3.893566734673e-02
      0 KSP preconditioned resid norm 2.075210645861e-03 true resid norm 3.893566734673e-02 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 1.354604121708e-08 true resid norm 3.210120674764e-07 ||r(i)||/||b|| 8.244678705972e-06
    Linear solve converged due to CONVERGED_RTOL iterations 1
    1 SNES Function norm 3.928262978140e-07
      0 KSP preconditioned resid norm 4.012446092441e-08 true resid norm 3.928262978140e-07 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 3.291755030881e-13 true resid norm 1.142603847352e-12 ||r(i)||/||b|| 2.908674530474e-06
    Linear solve converged due to CONVERGED_RTOL iterations 1
    2 SNES Function norm 1.140361438245e-12
  Nonlinear solve converged due to CONVERGED_FNORM_RELATIVE iterations 2
3 TS dt 1 time 3
    0 SNES Function norm 7.072003797845e-04
      0 KSP preconditioned resid norm 2.985985826471e-05 true resid norm 7.072003797845e-04 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 1.360683404935e-09 true resid norm 7.766564413762e-09 ||r(i)||/||b|| 1.098212704033e-05
      2 KSP preconditioned resid norm 1.355536488579e-14 true resid norm 2.741029939237e-13 ||r(i)||/||b|| 3.875888669732e-10
    Linear solve converged due to CONVERGED_RTOL iterations 2
    1 SNES Function norm 8.799393538189e-11
      0 KSP preconditioned resid norm 1.268240860687e-11 true resid norm 8.799393538189e-11 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 1.598556138248e-15 true resid norm 1.300296229532e-16 ||r(i)||/||b|| 1.477711189856e-06
      2 KSP preconditioned resid norm 1.594636691828e-15 true resid norm 1.176359160863e-16 ||r(i)||/||b|| 1.336863905175e-06
      3 KSP preconditioned resid norm 1.594636691828e-15 true resid norm 1.176359136362e-16 ||r(i)||/||b|| 1.336863877331e-06
      4 KSP preconditioned resid norm 1.594636466157e-15 true resid norm 1.680057681033e-15 ||r(i)||/||b|| 1.909288036433e-05
      5 KSP preconditioned resid norm 1.126933726205e-15 true resid norm 3.013339326200e-09 ||r(i)||/||b|| 3.424485236536e+01
      6 KSP preconditioned resid norm 9.387864793887e-16 true resid norm 3.933424137599e-09 ||r(i)||/||b|| 4.470108218855e+01
      7 KSP preconditioned resid norm 9.070661278230e-16 true resid norm 4.072033380018e-09 ||r(i)||/||b|| 4.627629577364e+01
      8 KSP preconditioned resid norm 8.249402532426e-16 true resid norm 4.408768188541e-09 ||r(i)||/||b|| 5.010309141655e+01
      9 KSP preconditioned resid norm 7.534530605607e-16 true resid norm 4.675885194343e-09 ||r(i)||/||b|| 5.313872114084e+01
     10 KSP preconditioned resid norm 6.973682751383e-16 true resid norm 4.868512559313e-09 ||r(i)||/||b|| 5.532781933419e+01
     11 KSP preconditioned resid norm 6.521713140954e-16 true resid norm 5.012908023992e-09 ||r(i)||/||b|| 5.696878997668e+01
     12 KSP preconditioned resid norm 6.147571940872e-16 true resid norm 5.125121763781e-09 ||r(i)||/||b|| 5.824403399551e+01
     13 KSP preconditioned resid norm 5.831220039769e-16 true resid norm 5.214832474798e-09 ||r(i)||/||b|| 5.926354415410e+01
     14 KSP preconditioned resid norm 5.559164887865e-16 true resid norm 5.288191141747e-09 ||r(i)||/||b|| 6.009722282333e+01
     15 KSP preconditioned resid norm 5.321948598603e-16 true resid norm 5.349296664528e-09 ||r(i)||/||b|| 6.079165162136e+01
     16 KSP preconditioned resid norm 5.112718616972e-16 true resid norm 5.400980813168e-09 ||r(i)||/||b|| 6.137901197086e+01
     17 KSP preconditioned resid norm 4.926372126708e-16 true resid norm 5.445267774664e-09 ||r(i)||/||b|| 6.188230758213e+01
     18 KSP preconditioned resid norm 4.759020574565e-16 true resid norm 5.483639339047e-09 ||r(i)||/||b|| 6.231837813877e+01
     19 KSP preconditioned resid norm 4.607641760886e-16 true resid norm 5.517205444830e-09 ||r(i)||/||b|| 6.269983744773e+01
     20 KSP preconditioned resid norm 4.469846488451e-16 true resid norm 5.546816971573e-09 ||r(i)||/||b|| 6.303635526130e+01
     21 KSP preconditioned resid norm 4.343717702574e-16 true resid norm 5.573133423670e-09 ||r(i)||/||b|| 6.333542646414e+01
     22 KSP preconditioned resid norm 4.227696928215e-16 true resid norm 5.596675265998e-09 ||r(i)||/||b|| 6.360296583746e+01
     23 KSP preconditioned resid norm 4.120502401467e-16 true resid norm 5.617859471536e-09 ||r(i)||/||b|| 6.384371203714e+01
     24 KSP preconditioned resid norm 4.021068945392e-16 true resid norm 5.637024566096e-09 ||r(i)||/||b|| 6.406151221254e+01
     25 KSP preconditioned resid norm 3.928503078688e-16 true resid norm 5.654444680967e-09 ||r(i)||/||b|| 6.425948170663e+01
     26 KSP preconditioned resid norm 3.842048996651e-16 true resid norm 5.670348976522e-09 ||r(i)||/||b|| 6.444022479406e+01
     27 KSP preconditioned resid norm 3.761062443545e-16 true resid norm 5.684925120671e-09 ||r(i)||/||b|| 6.460587421166e+01
     28 KSP preconditioned resid norm 3.684990400366e-16 true resid norm 5.698334924251e-09 ||r(i)||/||b|| 6.475826884569e+01
     29 KSP preconditioned resid norm 3.613355117717e-16 true resid norm 5.710711489252e-09 ||r(i)||/||b|| 6.489892132302e+01
     30 KSP preconditioned resid norm 8.698819833915e-09 true resid norm 5.722170463550e-09 ||r(i)||/||b|| 6.502914591462e+01
     31 KSP preconditioned resid norm 7.536793804038e-14 true resid norm 2.349427321624e-13 ||r(i)||/||b|| 2.669987779757e-03
     32 KSP preconditioned resid norm 1.928503282462e-15 true resid norm 6.473127949349e-15 ||r(i)||/||b|| 7.356334185142e-05
     33 KSP preconditioned resid norm 1.928503253731e-15 true resid norm 6.690222616855e-15 ||r(i)||/||b|| 7.603049673616e-05
     34 KSP preconditioned resid norm 1.928503253731e-15 true resid norm 6.238864042479e-15 ||r(i)||/||b|| 7.090106852709e-05
     35 KSP preconditioned resid norm 1.928498870918e-15 true resid norm 3.214140551449e-12 ||r(i)||/||b|| 3.652684173630e-02
     36 KSP preconditioned resid norm 1.625907985123e-15 true resid norm 2.044786756291e-07 ||r(i)||/||b|| 2.323781459957e+03
     37 KSP preconditioned resid norm 1.431982563341e-15 true resid norm 3.172178429613e-07 ||r(i)||/||b|| 3.604996657834e+03
     38 KSP preconditioned resid norm 1.294174652820e-15 true resid norm 3.886416984150e-07 ||r(i)||/||b|| 4.416687317464e+03
     39 KSP preconditioned resid norm 1.189776100504e-15 true resid norm 4.379426967629e-07 ||r(i)||/||b|| 4.976964547184e+03
     40 KSP preconditioned resid norm 1.107154614931e-15 true resid norm 4.740220827425e-07 ||r(i)||/||b|| 5.386985826754e+03
     41 KSP preconditioned resid norm 1.039654336201e-15 true resid norm 5.015718018458e-07 ||r(i)||/||b|| 5.700072393274e+03
     42 KSP preconditioned resid norm 9.831596390000e-16 true resid norm 5.232978881303e-07 ||r(i)||/||b|| 5.946976753105e+03
     43 KSP preconditioned resid norm 9.349720637672e-16 true resid norm 5.408703295482e-07 ||r(i)||/||b|| 6.146677349988e+03
     44 KSP preconditioned resid norm 8.932379684960e-16 true resid norm 5.553759198673e-07 ||r(i)||/||b|| 6.311524964272e+03
     45 KSP preconditioned resid norm 8.566353323118e-16 true resid norm 5.675528117436e-07 ||r(i)||/||b|| 6.449908272434e+03
     46 KSP preconditioned resid norm 8.241923453887e-16 true resid norm 5.779200537651e-07 ||r(i)||/||b|| 6.567725960397e+03
     47 KSP preconditioned resid norm 7.951765820935e-16 true resid norm 5.868530591039e-07 ||r(i)||/||b|| 6.669244380956e+03
     48 KSP preconditioned resid norm 7.690242557867e-16 true resid norm 5.946302226359e-07 ||r(i)||/||b|| 6.757627330284e+03
     49 KSP preconditioned resid norm 7.452934070804e-16 true resid norm 6.014622202040e-07 ||r(i)||/||b|| 6.835269017049e+03
     50 KSP preconditioned resid norm 7.236320331378e-16 true resid norm 6.075115156835e-07 ||r(i)||/||b|| 6.904015748891e+03
     51 KSP preconditioned resid norm 7.037558397152e-16 true resid norm 6.129052979292e-07 ||r(i)||/||b|| 6.965312953322e+03
     52 KSP preconditioned resid norm 6.854323672734e-16 true resid norm 6.177446416151e-07 ||r(i)||/||b|| 7.020309285340e+03
     53 KSP preconditioned resid norm 6.684694403275e-16 true resid norm 6.221108590337e-07 ||r(i)||/||b|| 7.069928811955e+03
     54 KSP preconditioned resid norm 6.527066145219e-16 true resid norm 6.260701223797e-07 ||r(i)||/||b|| 7.114923541749e+03
     55 KSP preconditioned resid norm 6.380087433170e-16 true resid norm 6.296767723820e-07 ||r(i)||/||b|| 7.155911025564e+03
     56 KSP preconditioned resid norm 6.242610702369e-16 true resid norm 6.329758684080e-07 ||r(i)||/||b|| 7.193403336956e+03
     57 KSP preconditioned resid norm 6.113654367785e-16 true resid norm 6.360052307587e-07 ||r(i)||/||b|| 7.227830281695e+03
     58 KSP preconditioned resid norm 5.992373181288e-16 true resid norm 6.387965762121e-07 ||r(i)||/||b|| 7.259552302551e+03
     59 KSP preconditioned resid norm 5.878034812657e-16 true resid norm 6.413769143451e-07 ||r(i)||/||b|| 7.288876347689e+03
     60 KSP preconditioned resid norm 1.312342799778e-07 true resid norm 6.437692835159e-07 ||r(i)||/||b|| 7.316064234678e+03
    Linear solve did not converge due to DIVERGED_DTOL iterations 60
  Nonlinear solve did not converge due to DIVERGED_LINEAR_SOLVE iterations 1
[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
[0]PETSC ERROR:
[0]PETSC ERROR: TSStep has failed due to DIVERGED_NONLINEAR_SOLVE, increase -ts_max_snes_failures or make negative to attempt recovery
[0]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.
[0]PETSC ERROR: Petsc Release Version 3.5.4, May, 23, 2015
[0]PETSC ERROR: ./planb on a arch-linux2-c-opt named localhost.localdomain by root Tue Jun  2 13:59:08 2015
[0]PETSC ERROR: Configure options --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-fblaslapack --download-mpich --download-hypre --with-debugging=0 COPTFLAGS="-Ofast -march=native -mtune=native" CXXOPTFLAGS="-Ofast -march=native -mtune=native" FOPTFLAGS="-Ofast -march=native -mtune=native"
[0]PETSC ERROR: #1 TSStep() line 2638 in /root/petsc/petsc-3.5.4/src/ts/interface/ts.c
[0]PETSC ERROR: #2 TSSolve() line 2748 in /root/petsc/petsc-3.5.4/src/ts/interface/ts.c
DIVERGED_NONLINEAR_SOLVE at time 0 after 3 steps
-------------- next part --------------
0 TS dt 1 time 0
    0 SNES Function norm 4.253022803593e+02
      0 KSP preconditioned resid norm 1.598377068791e+01 true resid norm 4.253022803593e+02 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 1.527395460671e-04 true resid norm 1.824978619341e-03 ||r(i)||/||b|| 4.291015363941e-06
    Linear solve converged due to CONVERGED_RTOL iterations 1
    1 SNES Function norm 3.724738658496e+00
      0 KSP preconditioned resid norm 4.541655062749e-01 true resid norm 3.724738658496e+00 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 2.742053553611e-06 true resid norm 9.163350378091e-06 ||r(i)||/||b|| 2.460132432967e-06
    Linear solve converged due to CONVERGED_RTOL iterations 1
    2 SNES Function norm 7.570359357297e-05
      0 KSP preconditioned resid norm 9.031735278010e-06 true resid norm 7.570359357297e-05 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 3.561905648780e-11 true resid norm 1.167305855774e-10 ||r(i)||/||b|| 1.541942463602e-06
    Linear solve converged due to CONVERGED_ATOL iterations 1
    3 SNES Function norm 1.167090042251e-10
  Nonlinear solve converged due to CONVERGED_FNORM_RELATIVE iterations 3
1 TS dt 1 time 1
    0 SNES Function norm 2.653082379074e+00
      0 KSP preconditioned resid norm 2.077610485197e-01 true resid norm 2.653082379074e+00 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 9.769974416602e-07 true resid norm 2.473966590397e-05 ||r(i)||/||b|| 9.324876641260e-06
    Linear solve converged due to CONVERGED_RTOL iterations 1
    1 SNES Function norm 7.247455375157e-04
      0 KSP preconditioned resid norm 1.044465137677e-04 true resid norm 7.247455375157e-04 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 2.451030701351e-09 true resid norm 1.426395371133e-09 ||r(i)||/||b|| 1.968132671809e-06
      2 KSP preconditioned resid norm 5.832060027950e-15 true resid norm 1.573719406040e-12 ||r(i)||/||b|| 2.171409583886e-09
    Linear solve converged due to CONVERGED_ATOL iterations 2
    2 SNES Function norm 7.209185280340e-12
  Nonlinear solve converged due to CONVERGED_FNORM_RELATIVE iterations 2
2 TS dt 1 time 2
    0 SNES Function norm 3.893566734673e-02
      0 KSP preconditioned resid norm 2.075210645861e-03 true resid norm 3.893566734673e-02 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 1.354604121708e-08 true resid norm 3.210120674764e-07 ||r(i)||/||b|| 8.244678705972e-06
    Linear solve converged due to CONVERGED_RTOL iterations 1
    1 SNES Function norm 3.928262978140e-07
      0 KSP preconditioned resid norm 4.012446092441e-08 true resid norm 3.928262978140e-07 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 3.291755030881e-13 true resid norm 1.142603847352e-12 ||r(i)||/||b|| 2.908674530474e-06
    Linear solve converged due to CONVERGED_ATOL iterations 1
    2 SNES Function norm 1.140361438245e-12
  Nonlinear solve converged due to CONVERGED_FNORM_RELATIVE iterations 2
3 TS dt 1 time 3
    0 SNES Function norm 7.072003797845e-04
      0 KSP preconditioned resid norm 2.985985826471e-05 true resid norm 7.072003797845e-04 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 1.360683404935e-09 true resid norm 7.766564413762e-09 ||r(i)||/||b|| 1.098212704033e-05
      2 KSP preconditioned resid norm 1.355536488579e-14 true resid norm 2.741029939237e-13 ||r(i)||/||b|| 3.875888669732e-10
    Linear solve converged due to CONVERGED_ATOL iterations 2
    1 SNES Function norm 8.799393538189e-11
      0 KSP preconditioned resid norm 1.268240860687e-11 true resid norm 8.799393538189e-11 ||r(i)||/||b|| 1.000000000000e+00
    Linear solve converged due to CONVERGED_ATOL iterations 0
  Nonlinear solve converged due to CONVERGED_SNORM_RELATIVE iterations 1
4 TS dt 1 time 4
    0 SNES Function norm 1.344414362743e-05
      0 KSP preconditioned resid norm 5.172248777434e-07 true resid norm 1.344414362743e-05 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 1.222241652113e-11 true resid norm 1.334838274983e-10 ||r(i)||/||b|| 9.928771307229e-06
    Linear solve converged due to CONVERGED_ATOL iterations 1
    1 SNES Function norm 1.334850288577e-10
      0 KSP preconditioned resid norm 1.222161239175e-11 true resid norm 1.334850288577e-10 ||r(i)||/||b|| 1.000000000000e+00
    Linear solve converged due to CONVERGED_ATOL iterations 0
  Nonlinear solve converged due to CONVERGED_SNORM_RELATIVE iterations 1
5 TS dt 1 time 5
    0 SNES Function norm 2.591466423628e-07
      0 KSP preconditioned resid norm 9.637807739615e-09 true resid norm 2.591466423628e-07 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 1.678675619343e-13 true resid norm 2.331564850773e-12 ||r(i)||/||b|| 8.997086859835e-06
    Linear solve converged due to CONVERGED_ATOL iterations 1
    1 SNES Function norm 2.332803353252e-12
  Nonlinear solve converged due to CONVERGED_SNORM_RELATIVE iterations 1
6 TS dt 1 time 6
    0 SNES Function norm 5.017542391741e-09
      0 KSP preconditioned resid norm 1.844050048424e-10 true resid norm 5.017542391741e-09 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 3.090981020654e-15 true resid norm 4.433674429577e-14 ||r(i)||/||b|| 8.836346727981e-06
    Linear solve converged due to CONVERGED_ATOL iterations 1
    1 SNES Function norm 8.680378695082e-14
  Nonlinear solve converged due to CONVERGED_SNORM_RELATIVE iterations 1
7 TS dt 1 time 7
    0 SNES Function norm 9.729564145362e-11
      0 KSP preconditioned resid norm 1.044238592402e-03 true resid norm 9.729564145362e-11 ||r(i)||/||b|| 1.000000000000e+00
      1 KSP preconditioned resid norm 1.044238592401e-03 true resid norm 6.820544672134e-10 ||r(i)||/||b|| 7.010123547399e+00
      2 KSP preconditioned resid norm 1.044238592401e-03 true resid norm 8.445969119028e-10 ||r(i)||/||b|| 8.680727104362e+00
      3 KSP preconditioned resid norm 1.044136977723e-03 true resid norm 2.449201165913e-03 ||r(i)||/||b|| 2.517277371649e+07
      4 KSP preconditioned resid norm 7.445935495674e-07 true resid norm 1.072817730961e+01 ||r(i)||/||b|| 1.102636988597e+11
      5 KSP preconditioned resid norm 3.916227586096e-07 true resid norm 9.555493716569e+00 ||r(i)||/||b|| 9.821091236779e+10
      6 KSP preconditioned resid norm 2.937255290875e-07 true resid norm 9.985006049138e+00 ||r(i)||/||b|| 1.026254198026e+11
      7 KSP preconditioned resid norm 2.411571542429e-07 true resid norm 1.083641444070e+01 ||r(i)||/||b|| 1.113761549726e+11
      8 KSP preconditioned resid norm 2.096009641527e-07 true resid norm 1.034314038751e+01 ||r(i)||/||b|| 1.063063075897e+11
      9 KSP preconditioned resid norm 1.878687988652e-07 true resid norm 1.075084562626e+01 ||r(i)||/||b|| 1.104966827459e+11
     10 KSP preconditioned resid norm 1.717428515416e-07 true resid norm 9.934773875293e+00 ||r(i)||/||b|| 1.021091358962e+11
     11 KSP preconditioned resid norm 1.591641622471e-07 true resid norm 1.033195422785e+01 ||r(i)||/||b|| 1.061913367699e+11
     12 KSP preconditioned resid norm 1.489978197813e-07 true resid norm 1.066054982748e+01 ||r(i)||/||b|| 1.095686267977e+11
     13 KSP preconditioned resid norm 1.405598009774e-07 true resid norm 1.028836260604e+01 ||r(i)||/||b|| 1.057433041432e+11
     14 KSP preconditioned resid norm 1.334100642297e-07 true resid norm 9.549639372745e+00 ||r(i)||/||b|| 9.815074169892e+10
     15 KSP preconditioned resid norm 1.272509723678e-07 true resid norm 1.121963347709e+01 ||r(i)||/||b|| 1.153148620993e+11
     16 KSP preconditioned resid norm 1.218730402854e-07 true resid norm 1.048201830088e+01 ||r(i)||/||b|| 1.077336882133e+11
     17 KSP preconditioned resid norm 1.171239783614e-07 true resid norm 1.057886746243e+01 ||r(i)||/||b|| 1.087290993140e+11
     18 KSP preconditioned resid norm 1.128900635955e-07 true resid norm 1.026457473633e+01 ||r(i)||/||b|| 1.054988135437e+11
     19 KSP preconditioned resid norm 1.090844273663e-07 true resid norm 9.830369274163e+00 ||r(i)||/||b|| 1.010360703449e+11
     20 KSP preconditioned resid norm 1.056394163151e-07 true resid norm 1.054966888344e+01 ||r(i)||/||b|| 1.084289977005e+11
     21 KSP preconditioned resid norm 1.025014516390e-07 true resid norm 1.001811941256e+01 ||r(i)||/||b|| 1.029657573853e+11
     22 KSP preconditioned resid norm 9.962747519408e-08 true resid norm 1.030677687005e+01 ||r(i)||/||b|| 1.059325650776e+11
     23 KSP preconditioned resid norm 9.698243424036e-08 true resid norm 1.011509529250e+01 ||r(i)||/||b|| 1.039624708915e+11
     24 KSP preconditioned resid norm 9.453746415448e-08 true resid norm 1.040323617238e+01 ||r(i)||/||b|| 1.069239692236e+11
     25 KSP preconditioned resid norm 9.226855118760e-08 true resid norm 9.753982831337e+00 ||r(i)||/||b|| 1.002509740993e+11
     26 KSP preconditioned resid norm 9.015553226141e-08 true resid norm 9.689553808953e+00 ||r(i)||/||b|| 9.958877565520e+10
     27 KSP preconditioned resid norm 8.818133580182e-08 true resid norm 9.938190304321e+00 ||r(i)||/||b|| 1.021442497921e+11
     28 KSP preconditioned resid norm 8.633139783847e-08 true resid norm 9.763032236643e+00 ||r(i)||/||b|| 1.003439834589e+11
     29 KSP preconditioned resid norm 8.459320747362e-08 true resid norm 9.632547602791e+00 ||r(i)||/||b|| 9.900286856510e+10
     30 KSP preconditioned resid norm 1.224166934780e+10 true resid norm 1.048973657614e+01 ||r(i)||/||b|| 1.078130162814e+11
    Linear solve did not converge due to DIVERGED_DTOL iterations 30
  Nonlinear solve did not converge due to DIVERGED_LINEAR_SOLVE iterations 0
[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
[0]PETSC ERROR:
[0]PETSC ERROR: TSStep has failed due to DIVERGED_NONLINEAR_SOLVE, increase -ts_max_snes_failures or make negative to attempt recovery
[0]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.
[0]PETSC ERROR: Petsc Release Version 3.5.4, May, 23, 2015
[0]PETSC ERROR: ./planb on a arch-linux2-c-opt named localhost.localdomain by root Tue Jun  2 14:14:06 2015
[0]PETSC ERROR: Configure options --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-fblaslapack --download-mpich --download-hypre --with-debugging=0 COPTFLAGS="-Ofast -march=native -mtune=native" CXXOPTFLAGS="-Ofast -march=native -mtune=native" FOPTFLAGS="-Ofast -march=native -mtune=native"
[0]PETSC ERROR: #1 TSStep() line 2638 in /root/petsc/petsc-3.5.4/src/ts/interface/ts.c
[0]PETSC ERROR: #2 TSSolve() line 2748 in /root/petsc/petsc-3.5.4/src/ts/interface/ts.c
DIVERGED_NONLINEAR_SOLVE at time 0 after 7 steps


More information about the petsc-users mailing list