LCOV - code coverage report
Current view: top level - src/kernels - ADCoupledTimeDerivative.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 10 11 90.9 %
Date: 2025-07-17 01:28:37 Functions: 3 3 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 "ADCoupledTimeDerivative.h"
      11             : 
      12             : registerMooseObject("MooseApp", ADCoupledTimeDerivative);
      13             : 
      14             : InputParameters
      15       14315 : ADCoupledTimeDerivative::validParams()
      16             : {
      17       14315 :   auto params = ADKernelValue::validParams();
      18       14315 :   params.addClassDescription("Time derivative Kernel that acts on a coupled variable. Weak form: "
      19             :                              "$(\\psi_i, \\frac{\\partial v_h}{\\partial t})$.");
      20       14315 :   params.addRequiredCoupledVar("v", "Coupled variable");
      21       14315 :   return params;
      22           0 : }
      23             : 
      24          26 : ADCoupledTimeDerivative::ADCoupledTimeDerivative(const InputParameters & parameters)
      25          26 :   : ADKernelValue(parameters), _v_dot(adCoupledDot("v"))
      26             : {
      27          26 : }
      28             : 
      29             : ADReal
      30        8000 : ADCoupledTimeDerivative::precomputeQpResidual()
      31             : {
      32        8000 :   return _v_dot[_qp];
      33             : }

Generated by: LCOV version 1.14