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 "NullExecutor.h" 11 : 12 : registerMooseObject("MooseApp", NullExecutor); 13 : 14 : InputParameters 15 14321 : NullExecutor::validParams() 16 : { 17 14321 : InputParameters params = Executor::validParams(); 18 14321 : params.addClassDescription( 19 : "Dummy executor that does nothing. Useful for testing among other things."); 20 14321 : return params; 21 0 : } 22 : 23 28 : NullExecutor::NullExecutor(const InputParameters & parameters) : Executor(parameters) {} 24 : 25 : Executor::Result 26 0 : NullExecutor::run() 27 : { 28 0 : Result & result = newResult(); 29 0 : return result; 30 : }