Skip to content

Commit

Permalink
Merge pull request #26365 from lindsayad/respect-options-left-10396
Browse files Browse the repository at this point in the history
Respect options_left set in petsc_options
  • Loading branch information
lindsayad authored Dec 19, 2023
2 parents eebfa9f + 5f591ea commit 7d1e620
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion framework/src/utils/PetscSupport.C
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ processPetscPairs(const std::vector<std::pair<MooseEnumItem, std::string>> & pet
// Turn off default options_left warnings added in 3.19.3 pre-release for all PETSc builds
// (PETSc commit: 59f199a7), unless the user has set a preference.
#if !PETSC_VERSION_LESS_THAN(3, 19, 2)
if (!options_left_set)
if (!options_left_set && !po.flags.contains("-options_left"))
po.pairs.emplace_back("-options_left", "0");
#endif
}
Expand Down
1 change: 1 addition & 0 deletions test/tests/misc/petsc_option_left/tests
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[test_options_not_left]
type = RunApp
input = '2d_diffusion_petsc_option.i'
expect_out = 'PETSc Option Table'
absent_out = "Option left.*value.*hypre"
requirement = "The system shall use the default PETSc option database in the parent app to handle system-level PETSc parameters"
[]
Expand Down

0 comments on commit 7d1e620

Please sign in to comment.