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 "ResolveOptionalMaterialPropertiesAction.h" 11 : #include "MaterialPropertyInterface.h" 12 : #include "MooseApp.h" 13 : 14 : registerMooseAction("MooseApp", 15 : ResolveOptionalMaterialPropertiesAction, 16 : "resolve_optional_materials"); 17 : 18 : InputParameters 19 66787 : ResolveOptionalMaterialPropertiesAction::validParams() 20 : { 21 66787 : InputParameters params = Action::validParams(); 22 66787 : return params; 23 : } 24 : 25 66787 : ResolveOptionalMaterialPropertiesAction::ResolveOptionalMaterialPropertiesAction( 26 66787 : const InputParameters & params) 27 66787 : : Action(params) 28 : { 29 66787 : } 30 : 31 : void 32 60620 : ResolveOptionalMaterialPropertiesAction::act() 33 : { 34 : mooseAssert(_problem, "Problem doesn't exist"); 35 : 36 396604 : for (auto mpi : _app.getInterfaceObjects<MaterialPropertyInterface>()) 37 335984 : mpi->resolveOptionalProperties(); 38 60620 : }