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 "KokkosMaterialRealAux.h" 11 : 12 187985 : registerKokkosAuxKernel("MooseApp", KokkosMaterialRealAux); 13 : 14 : InputParameters 15 9576 : KokkosMaterialRealAux::validParams() 16 : { 17 9576 : InputParameters params = AuxKernel::validParams(); 18 : 19 38304 : params.addRequiredParam<MaterialPropertyName>("property", "The material property name."); 20 28784 : params.addParam<Real>( 21 19040 : "factor", 1, "The factor by which to multiply your material property for visualization"); 22 28784 : params.addParam<Real>( 23 19040 : "offset", 0, "The offset to add to your material property for visualization"); 24 9576 : params.addClassDescription("Outputs element volume-averaged material properties"); 25 : 26 9576 : return params; 27 0 : } 28 : 29 247 : KokkosMaterialRealAux::KokkosMaterialRealAux(const InputParameters & parameters) 30 : : AuxKernel(parameters), 31 85 : _prop(getKokkosMaterialProperty<Real>("property")), 32 170 : _factor(getParam<Real>("factor")), 33 255 : _offset(getParam<Real>("offset")) 34 : { 35 112 : }