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