[cig-commits] [commit] knepley/upgrade-petsc-interface: Update PETSc settings to generate error if solver fails to converge. (286ea25)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Wed Nov 6 16:02:29 PST 2013
Repository : ssh://geoshell/pylith
On branch : knepley/upgrade-petsc-interface
Link : https://github.com/geodynamics/pylith/compare/292dccadf75961135347ac04699dcbeea592712a...286ea25d82eb51b4fe3caff49f127074ba5b71fb
>---------------------------------------------------------------
commit 286ea25d82eb51b4fe3caff49f127074ba5b71fb
Author: Brad Aagaard <baagaard at usgs.gov>
Date: Wed Nov 6 16:04:50 2013 -0800
Update PETSc settings to generate error if solver fails to converge.
>---------------------------------------------------------------
286ea25d82eb51b4fe3caff49f127074ba5b71fb
examples/2d/greensfns/reverse/pylithapp.cfg | 1 +
examples/2d/greensfns/strikeslip/pylithapp.cfg | 1 +
examples/3d/hex8/pylithapp.cfg | 2 ++
examples/3d/tet4/pylithapp.cfg | 1 +
examples/greensfns/hex8/pylithapp.cfg | 1 +
examples/twocells/twohex8/pylithapp.cfg | 2 ++
tests/2d/frictionslide/pylithapp.cfg | 2 ++
tests/2d/maxwell/pylithapp.cfg | 2 ++
tests/2d/plasticity/static/pylithapp.cfg | 2 ++
tests/2d/powerlaw/pylithapp.cfg | 2 ++
tests/2d/slipdir/pylithapp.cfg | 1 +
tests/2d/stressoutput/pylithapp.cfg | 2 ++
tests/3d/cyclicfriction/pylithapp.cfg | 2 ++
tests/3d/matprops/pylithapp.cfg | 1 +
tests/3d/refine/pylithapp.cfg | 1 +
tests/3d/relaxation/pylithapp.cfg | 2 ++
tests/3d/slipdir/pylithapp.cfg | 2 +-
17 files changed, 26 insertions(+), 1 deletion(-)
diff --git a/examples/2d/greensfns/reverse/pylithapp.cfg b/examples/2d/greensfns/reverse/pylithapp.cfg
index 33d73d3..15b450a 100644
--- a/examples/2d/greensfns/reverse/pylithapp.cfg
+++ b/examples/2d/greensfns/reverse/pylithapp.cfg
@@ -159,6 +159,7 @@ ksp_max_it = 500
ksp_monitor = true
ksp_view = true
ksp_converged_reason = true
+ksp_error_if_not_converged = true
log_summary = true
diff --git a/examples/2d/greensfns/strikeslip/pylithapp.cfg b/examples/2d/greensfns/strikeslip/pylithapp.cfg
index 8bf18a8..ac7e8cc 100644
--- a/examples/2d/greensfns/strikeslip/pylithapp.cfg
+++ b/examples/2d/greensfns/strikeslip/pylithapp.cfg
@@ -160,6 +160,7 @@ ksp_max_it = 500
ksp_monitor = true
ksp_view = true
ksp_converged_reason = true
+ksp_error_if_not_converged = true
log_summary = true
diff --git a/examples/3d/hex8/pylithapp.cfg b/examples/3d/hex8/pylithapp.cfg
index fb8dd89..ca418fd 100644
--- a/examples/3d/hex8/pylithapp.cfg
+++ b/examples/3d/hex8/pylithapp.cfg
@@ -84,6 +84,7 @@ ksp_gmres_restart = 50
ksp_monitor = true
#ksp_view = true
ksp_converged_reason = true
+ksp_error_if_not_converged = true
# Nonlinear solver monitoring options.
snes_rtol = 1.0e-10
@@ -93,6 +94,7 @@ snes_monitor = true
snes_linesearch_monitor = true
#snes_view = true
snes_converged_reason = true
+snes_error_if_not_converged = true
# PETSc summary -- useful for performance information.
log_summary = true
diff --git a/examples/3d/tet4/pylithapp.cfg b/examples/3d/tet4/pylithapp.cfg
index 3a94be1..7483676 100644
--- a/examples/3d/tet4/pylithapp.cfg
+++ b/examples/3d/tet4/pylithapp.cfg
@@ -108,6 +108,7 @@ ksp_gmres_restart = 50
ksp_monitor = true
ksp_view = true
ksp_converged_reason = true
+ksp_error_if_not_converged = true
log_summary = true
# start_in_debugger = true
diff --git a/examples/greensfns/hex8/pylithapp.cfg b/examples/greensfns/hex8/pylithapp.cfg
index 81b3314..cdd4159 100644
--- a/examples/greensfns/hex8/pylithapp.cfg
+++ b/examples/greensfns/hex8/pylithapp.cfg
@@ -132,6 +132,7 @@ ksp_gmres_restart = 50
ksp_monitor = true
ksp_view = true
ksp_converged_reason = true
+ksp_error_if_not_converged = true
# PETSc log summary.
log_summary = true
diff --git a/examples/twocells/twohex8/pylithapp.cfg b/examples/twocells/twohex8/pylithapp.cfg
index 19e724f..287668a 100644
--- a/examples/twocells/twohex8/pylithapp.cfg
+++ b/examples/twocells/twohex8/pylithapp.cfg
@@ -111,10 +111,12 @@ ksp_gmres_restart = 50
ksp_monitor = true
ksp_view = true
ksp_converged_reason = true
+ksp_error_if_not_converged = true
snes_monitor = true
snes_view = true
snes_converged_reason = true
+snes_error_if_not_converged = true
log_summary = true
# start_in_debugger = true
diff --git a/tests/2d/frictionslide/pylithapp.cfg b/tests/2d/frictionslide/pylithapp.cfg
index 34d70af..2be4d9d 100644
--- a/tests/2d/frictionslide/pylithapp.cfg
+++ b/tests/2d/frictionslide/pylithapp.cfg
@@ -104,6 +104,7 @@ ksp_gmres_restart = 20
ksp_monitor = true
#ksp_view = true
ksp_converged_reason = true
+ksp_error_if_not_converged = true
# SNES
snes_rtol = 1.0e-14
@@ -114,6 +115,7 @@ snes_monitor = true
snes_linesearch_monitor = true
#snes_view = true
snes_converged_reason = true
+snes_error_if_not_converged = true
log_summary = true
diff --git a/tests/2d/maxwell/pylithapp.cfg b/tests/2d/maxwell/pylithapp.cfg
index 90ab002..de96c47 100644
--- a/tests/2d/maxwell/pylithapp.cfg
+++ b/tests/2d/maxwell/pylithapp.cfg
@@ -89,10 +89,12 @@ ksp_gmres_restart = 50
ksp_monitor = true
ksp_view = true
ksp_converged_reason = true
+ksp_error_if_not_converged = true
snes_monitor = true
snes_view = true
snes_converged_reason = true
+snes_error_if_not_converged = true
log_summary = true
# start_in_debugger = true
diff --git a/tests/2d/plasticity/static/pylithapp.cfg b/tests/2d/plasticity/static/pylithapp.cfg
index ab27e11..16006c8 100644
--- a/tests/2d/plasticity/static/pylithapp.cfg
+++ b/tests/2d/plasticity/static/pylithapp.cfg
@@ -91,6 +91,7 @@ ksp_gmres_restart = 50
ksp_monitor = true
ksp_view = true
ksp_converged_reason = true
+ksp_error_if_not_converged = true
snes_rtol = 1.0e-10
snes_atol = 1.0e-16
@@ -99,6 +100,7 @@ snes_monitor = true
snes_ls_monitor = true
snes_view = true
snes_converged_reason = true
+snes_error_if_not_converged = true
snes_max_linear_solve_fail = 4
log_summary = true
diff --git a/tests/2d/powerlaw/pylithapp.cfg b/tests/2d/powerlaw/pylithapp.cfg
index 2cbddc0..803ccce 100644
--- a/tests/2d/powerlaw/pylithapp.cfg
+++ b/tests/2d/powerlaw/pylithapp.cfg
@@ -93,6 +93,7 @@ ksp_gmres_restart = 50
ksp_monitor = true
ksp_view = true
ksp_converged_reason = true
+ksp_error_if_not_converged = true
snes_rtol = 1.0e-10
snes_atol = 1.0e-20
@@ -100,6 +101,7 @@ snes_max_it = 100
snes_monitor = true
snes_view = true
snes_converged_reason = true
+snes_error_if_not_converged = true
log_summary = true
# start_in_debugger = true
diff --git a/tests/2d/slipdir/pylithapp.cfg b/tests/2d/slipdir/pylithapp.cfg
index dad60c7..4eefebd 100644
--- a/tests/2d/slipdir/pylithapp.cfg
+++ b/tests/2d/slipdir/pylithapp.cfg
@@ -101,6 +101,7 @@ ksp_rtol = 1.0e-8
ksp_atol = 1.0e-10
ksp_max_it = 50
ksp_gmres_restart = 25
+ksp_error_if_not_converged = true
ksp_monitor = true
#ksp_view = true
diff --git a/tests/2d/stressoutput/pylithapp.cfg b/tests/2d/stressoutput/pylithapp.cfg
index cfedc5f..5d14291 100644
--- a/tests/2d/stressoutput/pylithapp.cfg
+++ b/tests/2d/stressoutput/pylithapp.cfg
@@ -121,6 +121,7 @@ ksp_gmres_restart = 50
ksp_monitor = true
ksp_view = true
ksp_converged_reason = true
+ksp_error_if_not_converged = true
snes_rtol = 1.0e-10
snes_atol = 1.0e-20
@@ -128,6 +129,7 @@ snes_max_it = 100
snes_monitor = true
snes_view = true
snes_converged_reason = true
+snes_error_if_not_converged = true
log_summary = true
# start_in_debugger = true
diff --git a/tests/3d/cyclicfriction/pylithapp.cfg b/tests/3d/cyclicfriction/pylithapp.cfg
index 556d546..464228f 100644
--- a/tests/3d/cyclicfriction/pylithapp.cfg
+++ b/tests/3d/cyclicfriction/pylithapp.cfg
@@ -182,6 +182,7 @@ ksp_gmres_restart = 50
ksp_monitor = true
#ksp_view = true
ksp_converged_reason = true
+ksp_error_if_not_converged = true
# Nonlinear solver monitoring options.
snes_rtol = 1.0e-12
@@ -192,6 +193,7 @@ snes_monitor = true
#snes_steptol = 1.0e-20
#snes_view = true
snes_converged_reason = true
+snes_error_if_not_converged = true
snes_monitor_solution_update = true
snes_monitor_residual = true
#info =
diff --git a/tests/3d/matprops/pylithapp.cfg b/tests/3d/matprops/pylithapp.cfg
index 14c3185..1344de0 100644
--- a/tests/3d/matprops/pylithapp.cfg
+++ b/tests/3d/matprops/pylithapp.cfg
@@ -120,6 +120,7 @@ ksp_gmres_restart = 50
ksp_monitor = true
ksp_view = true
ksp_converged_reason = true
+ksp_error_if_not_converged = true
#log_summary = true
# start_in_debugger = true
diff --git a/tests/3d/refine/pylithapp.cfg b/tests/3d/refine/pylithapp.cfg
index 9121f29..4aefd0d 100644
--- a/tests/3d/refine/pylithapp.cfg
+++ b/tests/3d/refine/pylithapp.cfg
@@ -140,6 +140,7 @@ ksp_gmres_restart = 50
ksp_monitor = true
#ksp_view = true
ksp_converged_reason = true
+ksp_error_if_not_converged = true
# End of file
diff --git a/tests/3d/relaxation/pylithapp.cfg b/tests/3d/relaxation/pylithapp.cfg
index f90cdd8..ba63fa3 100644
--- a/tests/3d/relaxation/pylithapp.cfg
+++ b/tests/3d/relaxation/pylithapp.cfg
@@ -110,6 +110,7 @@ ksp_gmres_restart = 50
ksp_monitor = true
ksp_view = true
ksp_converged_reason = true
+ksp_error_if_not_converged = true
snes_rtol = 1.0e-8
snes_atol = 1.0e-12
@@ -117,6 +118,7 @@ snes_max_it = 100
snes_monitor = true
snes_view = true
snes_converged_reason = true
+snes_error_if_not_converged = true
#log_summary = true
diff --git a/tests/3d/slipdir/pylithapp.cfg b/tests/3d/slipdir/pylithapp.cfg
index 3376c71..80d59bf 100644
--- a/tests/3d/slipdir/pylithapp.cfg
+++ b/tests/3d/slipdir/pylithapp.cfg
@@ -107,7 +107,7 @@ matrix_type = aij
[pylithapp.petsc]
ksp_gmres_restart = 50
fs_pc_type = fieldsplit
-fs_pc_use_amat =
+fs_pc_use_amat = true
fs_pc_fieldsplit_type = multiplicative
fs_fieldsplit_0_pc_type = ml
fs_fieldsplit_0_ksp_type = preonly
More information about the CIG-COMMITS
mailing list