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 "KokkosLinearFVDiffusion.h" 11 : 12 123312 : registerKokkosLinearFVKernel("MooseApp", KokkosLinearFVDiffusion); 13 : 14 : InputParameters 15 2528 : KokkosLinearFVDiffusion::validParams() 16 : { 17 2528 : InputParameters params = Moose::Kokkos::LinearFVFluxKernel::validParams(); 18 10112 : params.addRequiredParam<FunctionName>("diffusion_coeff", "The diffusion coefficient."); 19 2528 : params.addClassDescription("Kokkos LinearFV diffusion kernel."); 20 2528 : return params; 21 0 : } 22 : 23 300 : KokkosLinearFVDiffusion::KokkosLinearFVDiffusion(const InputParameters & parameters) 24 : : Moose::Kokkos::LinearFVFluxKernel(parameters), 25 204 : _diffusion_coeff(getKokkosFunction<KokkosParsedFunction>("diffusion_coeff")) 26 : { 27 201 : }