LCOV - code coverage report
Current view: top level - src/kernels - NullKernel.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 13 14 92.9 %
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 "NullKernel.h"
      11             : 
      12             : registerMooseObject("MooseApp", NullKernel);
      13             : 
      14             : InputParameters
      15       28792 : NullKernel::validParams()
      16             : {
      17       28792 :   InputParameters params = Kernel::validParams();
      18       28792 :   params.addClassDescription("Kernel that sets a zero residual.");
      19       86376 :   params.addParam<Real>(
      20             :       "jacobian_fill",
      21       57584 :       1e-9,
      22             :       "On diagonal Jacobian fill term to retain an invertible matrix for the preconditioner");
      23       28792 :   return params;
      24           0 : }
      25             : 
      26         136 : NullKernel::NullKernel(const InputParameters & parameters)
      27         136 :   : Kernel(parameters), _jacobian_fill(getParam<Real>("jacobian_fill"))
      28             : {
      29         136 : }
      30             : 
      31             : Real
      32       16471 : NullKernel::computeQpResidual()
      33             : {
      34       16471 :   return 0.0;
      35             : }
      36             : 
      37             : Real
      38      280051 : NullKernel::computeQpJacobian()
      39             : {
      40      280051 :   return _jacobian_fill;
      41             : }

Generated by: LCOV version 1.14