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 194477 : ChainControl::validParams() 15 : { 16 194477 : InputParameters params = Control::validParams(); 17 194477 : params.registerBase("ChainControl"); 18 194477 : return params; 19 0 : } 20 : 21 605 : ChainControl::ChainControl(const InputParameters & parameters) : Control(parameters) {} 22 : 23 : void 24 360 : ChainControl::addChainControlDataDependency(const std::string & data_name) 25 : { 26 360 : if (std::find(_control_data_depends_on.begin(), _control_data_depends_on.end(), data_name) == 27 720 : _control_data_depends_on.end()) 28 360 : _control_data_depends_on.push_back(data_name); 29 360 : } 30 : 31 : std::string 32 609 : ChainControl::fullControlDataName(const std::string & data_name, bool apply_object_prefix) const 33 : { 34 635 : return (apply_object_prefix ? name() + ":" : "") + data_name; 35 : } 36 : 37 : ChainControlDataSystem & 38 921 : ChainControl::getChainControlDataSystem() 39 : { 40 921 : return getMooseApp().getChainControlDataSystem(); 41 : }