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 "KokkosLinearFVAdvection.h" 11 : 12 123312 : registerKokkosLinearFVKernel("MooseApp", KokkosLinearFVAdvection); 13 : 14 : InputParameters 15 2182 : KokkosLinearFVAdvection::validParams() 16 : { 17 2182 : InputParameters params = Moose::Kokkos::LinearFVFluxKernel::validParams(); 18 8728 : params.addRequiredParam<RealVectorValue>("velocity", "Constant advection velocity."); 19 2182 : params.addClassDescription("Kokkos LinearFV first-order upwind advection kernel."); 20 2182 : return params; 21 0 : } 22 : 23 42 : KokkosLinearFVAdvection::KokkosLinearFVAdvection(const InputParameters & parameters) 24 28 : : Moose::Kokkos::LinearFVFluxKernel(parameters), _velocity(getParam<RealVectorValue>("velocity")) 25 : { 26 28 : }