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 "KokkosVectorTimeDerivative.h" 11 : 12 455576 : registerKokkosResidualObject("MooseApp", KokkosVectorTimeDerivative); 13 : 14 : InputParameters 15 2188 : KokkosVectorTimeDerivative::validParams() 16 : { 17 2188 : InputParameters params = Moose::Kokkos::VectorTimeKernelValue::validParams(); 18 4376 : params.addClassDescription("The time derivative operator with the weak form of $(\\vec{\\psi_i}, " 19 : "\\frac{\\partial \\vec{u_h}}{\\partial t})$."); 20 6564 : params.addParam<bool>("lumping", false, "True for mass matrix lumping, false otherwise"); 21 : 22 2188 : return params; 23 0 : } 24 : 25 43 : KokkosVectorTimeDerivative::KokkosVectorTimeDerivative(const InputParameters & parameters) 26 30 : : Moose::Kokkos::VectorTimeKernelValue(parameters), _lumping(getParam<bool>("lumping")) 27 : { 28 29 : }