Line data Source code
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 : InputParameters 17 2261 : CommonTensorMechanicsAction::validParams() 18 : { 19 2261 : InputParameters params = TensorMechanicsActionBase::validParams(); 20 2261 : params.addClassDescription("Store common tensor mechanics parameters"); 21 2261 : return params; 22 0 : } 23 : 24 2261 : CommonTensorMechanicsAction::CommonTensorMechanicsAction(const InputParameters & parameters) 25 2261 : : Action(parameters) 26 : { 27 2261 : } 28 : 29 : void 30 2260 : CommonTensorMechanicsAction::act() 31 : { 32 : // check if sub-blocks block are found which will use the common parameters 33 2260 : auto action = _awh.getActions<TensorMechanicsActionBase>(); 34 2260 : if (action.size() == 0) 35 1 : mooseWarning("Common parameters are supplied, but not used in ", parameters().blockLocation()); 36 2259 : }