https://mooseframework.inl.gov
CommonCohesiveZoneAction.C
Go to the documentation of this file.
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 
11 #include "CohesiveZoneActionBase.h"
12 #include "ActionWarehouse.h"
13 
14 registerMooseAction("SolidMechanicsApp", CommonCohesiveZoneAction, "meta_action");
15 
18 {
20  params.addClassDescription("Store common cohesive zone paramters");
21  return params;
22 }
23 
25  : Action(parameters)
26 {
27 }
28 
29 void
31 {
32  // check if sub-blocks block are found which will use the common parameters
33  auto action = _awh.getActions<CohesiveZoneActionBase>();
34  if (action.size() == 0)
35  mooseWarning("Common parameters are supplied, but not used in ", parameters().blockLocation());
36 }
static InputParameters validParams()
ActionWarehouse & _awh
CommonCohesiveZoneAction(const InputParameters &parameters)
void mooseWarning(Args &&... args) const
registerMooseAction("SolidMechanicsApp", CommonCohesiveZoneAction, "meta_action")
virtual void act() override
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)
const InputParameters & parameters() const
std::string blockLocation() const
std::vector< const T *> getActions()
Store common tensor mechanics parameters.