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