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 "CommonChemicalCompositionAction.h" 11 : #include "ChemicalCompositionAction.h" 12 : #include "ActionWarehouse.h" 13 : 14 : registerMooseAction("ChemicalReactionsApp", CommonChemicalCompositionAction, "meta_action"); 15 : 16 : InputParameters 17 226 : CommonChemicalCompositionAction::validParams() 18 : { 19 226 : InputParameters params = ChemicalCompositionAction::validParams(); 20 226 : params.addClassDescription("Store common ChemicalComposition action parameters"); 21 226 : return params; 22 0 : } 23 : 24 226 : CommonChemicalCompositionAction::CommonChemicalCompositionAction(const InputParameters & parameters) 25 226 : : Action(parameters) 26 : { 27 226 : } 28 : 29 : void 30 190 : CommonChemicalCompositionAction::act() 31 : { 32 : // check if sub-blocks block are found which will use the common parameters 33 190 : auto actions = _awh.getActions<ChemicalCompositionAction>(); 34 190 : if (actions.size() == 0) 35 0 : mooseWarning("Common parameters are supplied, but not used in ", parameters().blockLocation()); 36 190 : }