<div dir="ltr"><div><div><div><div><div><div>Hi all,<br><br></div>How to force the code run with a given number of iterations? <br><br></div>I use the following script to run code, but the code stop after doing <i><b>two</b></i> iterations:<br>
<br><i> mpirun -n 2 ./linearElasticity  -ksp_type gmres -pc_type asm   -pc_asm_overlap 1 -sub_pc_type ilu -sub_pc_factor_levels 2 -sub_ksp_type preonly -sub_pc_factor_mat_ordering_type rcm -ksp_view - -ksp_rtol 1e-5 -ksp_max_it 500 -ksp_monitor -ksp_monitor_singular_value</i><br>
<br></div>The residual history is listed as follows:<br><br><i>  0 KSP Residual norm 9.732477596672e+31 <br>  0 KSP Residual norm 9.732477596672e+31 % max 1.000000000000e+00 min 1.000000000000e+00 max/min 1.000000000000e+00<br>
  1 KSP Residual norm 8.532845325800e+31 <br>  1 KSP Residual norm 8.532845325800e+31 % max 4.821161757157e+55 min 4.821161757157e+55 max/min 1.000000000000e+00<br>  2 KSP Residual norm 3.648279603061e+23 <br>  2 KSP Residual norm 3.648279603061e+23 % max 1.234581012401e+79 min 2.318814661396e+55 max/min 5.324190125905e+23<br>
</i><br></div> The residual is not small enough to stop. <br><br><br></div>Thanks,<br><br></div>Fande Kong, <br></div>