Skip to content

Commit

Permalink
adding test idaholab#27084
Browse files Browse the repository at this point in the history
  • Loading branch information
jthano committed Mar 14, 2024
1 parent 40f6591 commit 17bd5c6
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
56 changes: 56 additions & 0 deletions test/tests/problems/no_solve/ne_fail.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
[Mesh]
type = GeneratedMesh
dim = 2
xmin = 0
xmax = 10
ymin = 0
ymax = 10
elem_type = QUAD4
nx = 2
ny = 2
[]

[Variables]
[u]
[]
[]

[Problem]
[]

[Kernels]
[diff]
type = Diffusion
variable = u
[]

[rhs]
type = CoefReaction
variable = u
coefficient = -1.0
extra_vector_tags = 'eigen'
[]
[]

[BCs]
[homogeneous]
type = DirichletBC
variable = u
boundary = '0 1 2 3'
value = 0
[]
[eigen]
type = EigenDirichletBC
variable = u
boundary = '0 1 2 3'
[]
[]

[Executioner]
type = Eigenvalue
solve_type = PJFNK
nl_max_its = 1
nl_rel_tol = 1e-50
nl_abs_tol = 1e-50
free_power_iterations = 0
[]
21 changes: 21 additions & 0 deletions test/tests/problems/no_solve/tests
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,25 @@
issues = '#1978'
design = 'Problem/index.md'
[../]
[eigen_problem_solve_fail]
type = 'RunApp'
requirement = 'The system shall inform the user when the nonlinear-eigen system solve failed .'
# regex meant to make sure no messaged about solve failing is printed last
expect_out = 'Aborting as solve did not converge\n\Z'
input = 'ne_fail.i'
design = 'Problem/index.md'
issues = '#27084'
[]
[eigen_problem_skip_solve]
type = 'RunApp'
prereq = eigen_problem_solve_fail
requirement = 'The system shall have the ability to disable the actual nonlinear-eigen system solve in a simulation.'
# regex meant to make sure no messaged about solve failing is printed last
# \S+ is to consume the ansi color characters
expect_out = 'Solve Skipped!\S+\n\Z'
input = 'ne_fail.i'
cli_args = Problem/solve=false
design = 'Problem/index.md'
issues = '#27084'
[]
[]

0 comments on commit 17bd5c6

Please sign in to comment.