LCOV - code coverage report
Current view: top level - src/bcs - IPHDGDirichletBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 13 14 92.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 "IPHDGDirichletBC.h"
      11             : #include "IPHDGAssemblyHelper.h"
      12             : 
      13             : InputParameters
      14       29813 : IPHDGDirichletBC::validParams()
      15             : {
      16       29813 :   auto params = IPHDGBC::validParams();
      17       29813 :   params.addRequiredParam<MooseFunctorName>("functor",
      18             :                                             "The Dirichlet value for the primal variable");
      19       29813 :   return params;
      20           0 : }
      21             : 
      22         645 : IPHDGDirichletBC::IPHDGDirichletBC(const InputParameters & params)
      23         645 :   : IPHDGBC(params), _dirichlet_val(getFunctor<Real>("functor"))
      24             : {
      25         645 : }
      26             : 
      27             : void
      28      104932 : IPHDGDirichletBC::compute()
      29             : {
      30      104932 :   auto & iphdg_helper = iphdgHelper();
      31      104932 :   iphdg_helper.resizeResiduals();
      32             : 
      33             :   // u, lm_u
      34      104932 :   iphdg_helper.scalarDirichlet(_dirichlet_val);
      35      104932 :   iphdg_helper.lmDirichlet(_dirichlet_val);
      36      104932 : }

Generated by: LCOV version 1.14