Line data Source code
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 : 10 : #include "CrystalPlasticityUOBase.h" 11 : 12 : InputParameters 13 728 : CrystalPlasticityUOBase::validParams() 14 : { 15 728 : InputParameters params = DiscreteElementUserObject::validParams(); 16 1456 : params.addRequiredParam<unsigned int>("variable_size", "The userobject's variable size."); 17 728 : params.addClassDescription("Crystal plasticity userobject system base class. Override the " 18 : "virtual functions in your class"); 19 728 : return params; 20 0 : } 21 : 22 364 : CrystalPlasticityUOBase::CrystalPlasticityUOBase(const InputParameters & parameters) 23 728 : : DiscreteElementUserObject(parameters), _variable_size(getParam<unsigned int>("variable_size")) 24 : { 25 364 : } 26 : 27 : unsigned int 28 22871208 : CrystalPlasticityUOBase::variableSize() const 29 : { 30 22871208 : return _variable_size; 31 : }