LCOV - code coverage report
Current view: top level - src/kernels - PrimaryTimeDerivative.C (source / functions) Hit Total Coverage
Test: idaholab/moose chemical_reactions: #31405 (292dce) with base fef103 Lines: 11 12 91.7 %
Date: 2025-09-04 07:52:33 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 "PrimaryTimeDerivative.h"
      11             : 
      12             : registerMooseObject("ChemicalReactionsApp", PrimaryTimeDerivative);
      13             : 
      14             : InputParameters
      15        1946 : PrimaryTimeDerivative::validParams()
      16             : {
      17        1946 :   InputParameters params = TimeDerivative::validParams();
      18        1946 :   params.addClassDescription("Derivative of primary species concentration wrt time");
      19        1946 :   return params;
      20           0 : }
      21             : 
      22        1044 : PrimaryTimeDerivative::PrimaryTimeDerivative(const InputParameters & parameters)
      23        2088 :   : TimeDerivative(parameters), _porosity(getMaterialProperty<Real>("porosity"))
      24             : {
      25        1044 : }
      26             : 
      27             : Real
      28     8351776 : PrimaryTimeDerivative::computeQpResidual()
      29             : {
      30     8351776 :   return _porosity[_qp] * TimeDerivative::computeQpResidual();
      31             : }
      32             : 
      33             : Real
      34     3939648 : PrimaryTimeDerivative::computeQpJacobian()
      35             : {
      36     3939648 :   return _porosity[_qp] * TimeDerivative::computeQpJacobian();
      37             : }

Generated by: LCOV version 1.14