www.mooseframework.org
tensor_mechanics
src
actions
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
10
#include "
CommonTensorMechanicsAction.h
"
11
#include "
TensorMechanicsAction.h
"
12
#include "ActionWarehouse.h"
13
14
registerMooseAction
(
"TensorMechanicsApp"
,
CommonTensorMechanicsAction
,
"meta_action"
);
15
16
defineLegacyParams
(
CommonTensorMechanicsAction
);
17
18
InputParameters
19
CommonTensorMechanicsAction::validParams
()
20
{
21
InputParameters params =
TensorMechanicsActionBase::validParams
();
22
return
params;
23
}
24
25
CommonTensorMechanicsAction::CommonTensorMechanicsAction
(
const
InputParameters & parameters)
26
: Action(parameters)
27
{
28
}
29
30
void
31
CommonTensorMechanicsAction::act
()
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 ¶meters)
Definition:
CommonTensorMechanicsAction.C:25
CommonTensorMechanicsAction
Store common tensor mechanics parameters.
Definition:
CommonTensorMechanicsAction.h:22
TensorMechanicsAction.h
defineLegacyParams
defineLegacyParams(CommonTensorMechanicsAction)
CommonTensorMechanicsAction.h
Generated on Sat Jan 25 2020 12:04:45 for www.mooseframework.org by
1.8.16