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 201775 : registerKokkosAuxKernel("MooseApp", KokkosMaterialRealAux); 13 : 14 : InputParameters 15 2464 : KokkosMaterialRealAux::validParams() 16 : { 17 2464 : InputParameters params = AuxKernel::validParams(); 18 : 19 9856 : params.addRequiredParam<MaterialPropertyName>("property", "The material property name."); 20 7554 : params.addParam<Real>( 21 4604 : "factor", 1, "The factor by which to multiply your material property for visualization"); 22 7554 : params.addParam<Real>( 23 4604 : "offset", 0, "The offset to add to your material property for visualization"); 24 2464 : params.addClassDescription("Outputs element volume-averaged material properties"); 25 : 26 2464 : return params; 27 0 : } 28 : 29 583 : KokkosMaterialRealAux::KokkosMaterialRealAux(const InputParameters & parameters) 30 : : AuxKernel(parameters), 31 103 : _prop(getKokkosMaterialProperty<Real>("property")), 32 206 : _factor(getParam<Real>("factor")), 33 309 : _offset(getParam<Real>("offset")) 34 : { 35 183 : }