Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #include "SetupInterface.h" 11 : #include "Conversion.h" 12 : #include "FEProblem.h" 13 : 14 : InputParameters 15 15352440 : SetupInterface::validParams() 16 : { 17 15352440 : InputParameters params = emptyInputParameters(); 18 : 19 : // Add the 'execute_on' input parameter for users to set 20 15352440 : ExecFlagEnum execute_options = MooseUtils::getDefaultExecFlagEnum(); 21 15352440 : execute_options = EXEC_LINEAR; 22 46057320 : params.addParam<ExecFlagEnum>("execute_on", execute_options, execute_options.getDocString()); 23 30704880 : return params; 24 15352440 : } 25 : 26 1138145 : SetupInterface::SetupInterface(const MooseObject * moose_object) 27 2276290 : : _execute_enum(moose_object->parameters().isParamValid("execute_on") 28 1138145 : ? moose_object->parameters().get<ExecFlagEnum>("execute_on") 29 : : _empty_execute_enum), 30 1138137 : _current_execute_flag( 31 1138145 : (moose_object->parameters().getCheckedPointerParam<FEProblemBase *>("_fe_problem_base")) 32 4552572 : ->getCurrentExecuteOnFlag()) 33 : { 34 : _empty_execute_enum 35 1138137 : .clearSetValues(); // remove any flags for the case when "execute_on" is not used 36 1138137 : } 37 : 38 1077351 : SetupInterface::~SetupInterface() {} 39 : 40 : void 41 545527 : SetupInterface::initialSetup() 42 : { 43 545527 : } 44 : 45 : void 46 4621886 : SetupInterface::timestepSetup() 47 : { 48 4621886 : } 49 : 50 : void 51 6406755 : SetupInterface::jacobianSetup() 52 : { 53 6406755 : } 54 : 55 : void 56 41577504 : SetupInterface::residualSetup() 57 : { 58 41577504 : } 59 : 60 : void 61 49786152 : SetupInterface::subdomainSetup() 62 : { 63 49786152 : } 64 : 65 : const ExecFlagEnum & 66 526226 : SetupInterface::getExecuteOnEnum() const 67 : { 68 526226 : return _execute_enum; 69 : }