www.mooseframework.org
DeprecatedBlockAction.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "DeprecatedBlockAction.h"
11 
12 registerMooseAction("MooseApp", DeprecatedBlockAction, "deprecated_block");
13 
14 template <>
17 {
19 
20  params.addParam<bool>("DEPRECATED", "*** WARNING: This block is deprecated - DO NOT USE ***");
21  return params;
22 }
23 
25 
26 void
28 {
29  mooseError("Input file block '" + name() + "' has been deprecated.");
30 }
InputParameters validParams< DeprecatedBlockAction >()
const std::string & name() const
The name of the action.
Definition: Action.h:76
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:207
registerMooseAction("MooseApp", DeprecatedBlockAction, "deprecated_block")
void act() override
Method to add objects to the simulation or perform other setup tasks.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Base class for actions.
Definition: Action.h:35
DeprecatedBlockAction(InputParameters parameters)
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an option parameter and a documentation string to the InputParameters object...
Used for marking that some block are deprecated and not be used.
InputParameters validParams< Action >()
Definition: Action.C:22