LCOV - code coverage report
Current view: top level - src/mfem/kernels - MFEMMixedBilinearFormKernel.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 11 12 91.7 %
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             : #ifdef MFEM_ENABLED
      11             : 
      12             : #include "MFEMMixedBilinearFormKernel.h"
      13             : 
      14             : InputParameters
      15       17264 : MFEMMixedBilinearFormKernel::validParams()
      16             : {
      17       17264 :   InputParameters params = MFEMKernel::validParams();
      18       17264 :   params.addClassDescription(
      19             :       "Base class for mixed bilinear form kernels, allowing different trial and test variables.");
      20       17264 :   params.addParam<VariableName>(
      21             :       "trial_variable",
      22             :       "The trial variable this kernel is acting on and which will be solved for. If empty "
      23             :       "(default), it will be the same as the test variable.");
      24       17264 :   return params;
      25           0 : }
      26             : 
      27           2 : MFEMMixedBilinearFormKernel::MFEMMixedBilinearFormKernel(const InputParameters & parameters)
      28             :   : MFEMKernel(parameters),
      29           2 :     _trial_var_name(isParamValid("trial_variable") ? getParam<VariableName>("trial_variable")
      30           2 :                                                    : _test_var_name)
      31             : {
      32           2 : }
      33             : 
      34             : const VariableName &
      35           1 : MFEMMixedBilinearFormKernel::getTrialVariableName() const
      36             : {
      37           1 :   return _trial_var_name;
      38             : }
      39             : 
      40             : #endif

Generated by: LCOV version 1.14