Skip to content
Permalink
Browse files

Merge pull request #13442 from aeslaughter/auto-smp-13411

Handle cases when 'NEWTON' is not a valid solve_type
  • Loading branch information...
permcody committed May 20, 2019
2 parents d2c618c + e7f35ab commit 8820cb9d143f7038e84589322bcf0bf3ea54d7bf
Showing with 3 additions and 3 deletions.
  1. +1 −2 framework/include/utils/MooseEnumBase.h
  2. +2 −1 framework/src/actions/CreateExecutionerAction.C
@@ -84,7 +84,7 @@ class MooseEnumBase
/**
* Return the complete set of available flags.
*/
const std::set<MooseEnumItem> & items() { return _items; }
const std::set<MooseEnumItem> & items() const { return _items; }

///@{
/**
@@ -137,4 +137,3 @@ class MooseEnumBase
/// Flag to enable enumeration items not previously defined
bool _allow_out_of_range;
};

@@ -64,7 +64,8 @@ void
CreateExecutionerAction::setupAutoPreconditioning()
{
// If using NEWTON then automatically create SingleMatrixPreconditioner object with full=true
if (_moose_object_pars.get<MooseEnum>("solve_type") == "NEWTON")
const MooseEnum & solve_type = _moose_object_pars.get<MooseEnum>("solve_type");
if ((solve_type.find("NEWTON") != solve_type.items().end()) && (solve_type == "NEWTON"))
{
// Action Parameters
InputParameters params = _action_factory.getValidParams("SetupPreconditionerAction");

0 comments on commit 8820cb9

Please sign in to comment.
You can’t perform that action at this time.