LCOV - code coverage report
Current view: top level - src/linearfvkernels - LinearFVKernel.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 419b9d Lines: 13 18 72.2 %
Date: 2025-08-08 20:01:16 Functions: 2 3 66.7 %
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 "LinearFVKernel.h"
      11             : #include "Assembly.h"
      12             : #include "SubProblem.h"
      13             : #include "FEProblemBase.h"
      14             : 
      15             : InputParameters
      16       92076 : LinearFVKernel::validParams()
      17             : {
      18       92076 :   InputParameters params = LinearSystemContributionObject::validParams();
      19       92076 :   params += BlockRestrictable::validParams();
      20       92076 :   params += NonADFunctorInterface::validParams();
      21       92076 :   params += FVRelationshipManagerInterface::validParams();
      22             : 
      23       92076 :   params.registerBase("LinearFVKernel");
      24       92076 :   return params;
      25           0 : }
      26             : 
      27        3243 : LinearFVKernel::LinearFVKernel(const InputParameters & params)
      28             :   : LinearSystemContributionObject(params),
      29             :     BlockRestrictable(this),
      30             :     NonADFunctorInterface(this),
      31             :     MooseVariableInterface(this,
      32             :                            false,
      33             :                            "variable",
      34             :                            Moose::VarKindType::VAR_SOLVER,
      35             :                            Moose::VarFieldType::VAR_FIELD_STANDARD),
      36             :     MooseVariableDependencyInterface(this),
      37        6486 :     _var(*mooseLinearVariableFV()),
      38        3243 :     _var_num(_var.number()),
      39        6486 :     _sys_num(_sys.number())
      40             : {
      41        3243 :   addMooseVariableDependency(&_var);
      42        3243 : }
      43             : 
      44             : void
      45           0 : LinearFVKernel::requestVariableCellGradient(const std::string & var_name)
      46             : {
      47           0 :   dynamic_cast<MooseLinearVariableFV<Real> *>(&_fe_problem.getStandardVariable(_tid, var_name))
      48           0 :       ->computeCellGradients();
      49           0 : }

Generated by: LCOV version 1.14