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 61934 : ResolveOptionalMaterialPropertiesAction::validParams() 20 : { 21 61934 : InputParameters params = Action::validParams(); 22 61934 : return params; 23 : } 24 : 25 61934 : ResolveOptionalMaterialPropertiesAction::ResolveOptionalMaterialPropertiesAction( 26 61934 : const InputParameters & params) 27 61934 : : Action(params) 28 : { 29 61934 : } 30 : 31 : void 32 56104 : ResolveOptionalMaterialPropertiesAction::act() 33 : { 34 : mooseAssert(_problem, "Problem doesn't exist"); 35 : 36 369049 : for (auto mpi : _app.getInterfaceObjects<MaterialPropertyInterface>()) 37 312945 : mpi->resolveOptionalProperties(); 38 56104 : }