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