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 "KokkosParsedMaterial.h" 11 : 12 766745 : registerKokkosMaterial("MooseApp", KokkosParsedMaterial); 13 : 14 : InputParameters 15 2270 : KokkosParsedMaterial::validParams() 16 : { 17 2270 : InputParameters params = Material::validParams(); 18 2270 : params += ParsedObjectBase::validParams(); 19 : 20 9080 : params.addRequiredParam<MaterialPropertyName>("property_name", 21 : "Name of the parsed material property"); 22 2270 : params.addClassDescription("Evaluates a property with a parsed expression."); 23 : 24 2270 : return params; 25 0 : } 26 : 27 225 : KokkosParsedMaterial::KokkosParsedMaterial(const InputParameters & parameters) 28 : : Material(parameters), 29 : ParsedObjectBase(this), 30 243 : _prop(declareKokkosProperty<Real>("property_name")) 31 : { 32 258 : initParsed(this, coupledNames("coupled_variables")); 33 129 : }