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 "ChainControl.h" 11 : #include "MooseApp.h" 12 : 13 : InputParameters 14 186335 : ChainControl::validParams() 15 : { 16 186335 : InputParameters params = Control::validParams(); 17 186335 : params.registerBase("ChainControl"); 18 186335 : return params; 19 0 : } 20 : 21 446 : ChainControl::ChainControl(const InputParameters & parameters) : Control(parameters) {} 22 : 23 : void 24 240 : ChainControl::addChainControlDataDependency(const std::string & data_name) 25 : { 26 240 : if (std::find(_control_data_depends_on.begin(), _control_data_depends_on.end(), data_name) == 27 480 : _control_data_depends_on.end()) 28 240 : _control_data_depends_on.push_back(data_name); 29 240 : } 30 : 31 : std::string 32 472 : ChainControl::fullControlDataName(const std::string & data_name, bool apply_object_prefix) const 33 : { 34 944 : return (apply_object_prefix ? name() + ":" : "") + data_name; 35 : } 36 : 37 : ChainControlDataSystem & 38 680 : ChainControl::getChainControlDataSystem() 39 : { 40 680 : return getMooseApp().getChainControlDataSystem(); 41 : }