www.mooseframework.org
CommonTensorMechanicsAction.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 
11 #include "TensorMechanicsAction.h"
12 #include "ActionWarehouse.h"
13 
14 registerMooseAction("TensorMechanicsApp", CommonTensorMechanicsAction, "meta_action");
15 
17 
18 InputParameters
20 {
21  InputParameters params = TensorMechanicsActionBase::validParams();
22  return params;
23 }
24 
26  : Action(parameters)
27 {
28 }
29 
30 void
32 {
33  // check if sub-blocks block are found which will use the common parameters
34  auto action = _awh.getActions<TensorMechanicsActionBase>();
35  if (action.size() == 0)
36  mooseWarning("Common parameters are supplied, but not used in ", parameters().blockLocation());
37 }
CommonTensorMechanicsAction::act
virtual void act() override
Definition: CommonTensorMechanicsAction.C:31
CommonTensorMechanicsAction::validParams
static InputParameters validParams()
Definition: CommonTensorMechanicsAction.C:19
registerMooseAction
registerMooseAction("TensorMechanicsApp", CommonTensorMechanicsAction, "meta_action")
TensorMechanicsActionBase
Definition: TensorMechanicsActionBase.h:19
TensorMechanicsActionBase::validParams
static InputParameters validParams()
Definition: TensorMechanicsActionBase.C:39
CommonTensorMechanicsAction::CommonTensorMechanicsAction
CommonTensorMechanicsAction(const InputParameters &parameters)
Definition: CommonTensorMechanicsAction.C:25
CommonTensorMechanicsAction
Store common tensor mechanics parameters.
Definition: CommonTensorMechanicsAction.h:22
TensorMechanicsAction.h
defineLegacyParams
defineLegacyParams(CommonTensorMechanicsAction)
CommonTensorMechanicsAction.h