Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14154 from frombs/issue_13991
Add PETSc SNES divergence tolerance support
- Loading branch information
Showing
11 changed files
with
111 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+45.9 KB
test/tests/executioners/nl_divergence_tolerance/gold/nl_divergence_tolerance_out.e
Binary file not shown.
61 changes: 61 additions & 0 deletions
61
test/tests/executioners/nl_divergence_tolerance/nl_divergence_tolerance.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 2 | ||
nx = 15 | ||
ny = 15 | ||
[] | ||
|
||
[Variables] | ||
[./u] | ||
scaling = 1e-4 | ||
[../] | ||
[] | ||
|
||
[Kernels] | ||
[./diff] | ||
type = CoefDiffusion | ||
variable = u | ||
coef = 0.1 | ||
[../] | ||
[./time] | ||
type = TimeDerivative | ||
variable = u | ||
[../] | ||
[] | ||
|
||
[BCs] | ||
[./left] | ||
type = DirichletBC | ||
variable = u | ||
boundary = left | ||
value = -1000 | ||
[../] | ||
[./right] | ||
type = DirichletBC | ||
variable = u | ||
boundary = right | ||
value = 100000 | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
scheme = 'implicit-euler' | ||
line_search = 'none' | ||
solve_type = PJFNK | ||
|
||
l_max_its = 20 | ||
nl_max_its = 20 | ||
nl_div_tol = 1.0e+4 | ||
|
||
dt = 5 | ||
num_steps = 4 | ||
|
||
petsc_options = '-snes_converged_reason -ksp_converged_reason ' | ||
petsc_options_iname = '-pc_type -pc_hypre_type ' | ||
petsc_options_value = 'hypre boomeramg' | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[Tests] | ||
design = 'syntax/Executioner/index.md' | ||
[./test] | ||
type = 'Exodiff' | ||
input = 'nl_divergence_tolerance.i' | ||
exodiff = 'nl_divergence_tolerance_out.e' | ||
petsc_version = '>=3.8.0' | ||
max_parallel = 1 | ||
max_threads = 1 | ||
mesh_mode = REPLICATED | ||
requirement = "The Executioner system shall support the PETSc non-linear divergence tolerance." | ||
issues = '#13991' | ||
[../] | ||
[] |