LCOV - code coverage report
Current view: top level - src/scalarkernels - ODETimeDerivative.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 12 13 92.3 %
Date: 2025-07-17 01:28:37 Functions: 4 4 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://mooseframework.inl.gov
       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 "ODETimeDerivative.h"
      11             : 
      12             : registerMooseObject("MooseApp", ODETimeDerivative);
      13             : 
      14             : InputParameters
      15       15051 : ODETimeDerivative::validParams()
      16             : {
      17       15051 :   InputParameters params = ODETimeKernel::validParams();
      18       15051 :   params.addClassDescription(
      19             :       "Returns the time derivative contribution to the residual for a scalar variable.");
      20       15051 :   return params;
      21           0 : }
      22             : 
      23         391 : ODETimeDerivative::ODETimeDerivative(const InputParameters & parameters) : ODETimeKernel(parameters)
      24             : {
      25         387 : }
      26             : 
      27             : Real
      28       73120 : ODETimeDerivative::computeQpResidual()
      29             : {
      30       73120 :   return _u_dot[_i];
      31             : }
      32             : 
      33             : Real
      34       17254 : ODETimeDerivative::computeQpJacobian()
      35             : {
      36       17254 :   if (_i == _j)
      37       17122 :     return _du_dot_du[_i];
      38             :   else
      39         132 :     return 0;
      40             : }

Generated by: LCOV version 1.14