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