LCOV - code coverage report
Current view: top level - src/bcs - ADVectorMatchedValueBC.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 "ADVectorMatchedValueBC.h"
      11             : 
      12             : registerMooseObject("MooseApp", ADVectorMatchedValueBC);
      13             : 
      14             : InputParameters
      15       14309 : ADVectorMatchedValueBC::validParams()
      16             : {
      17       14309 :   InputParameters params = ADVectorNodalBC::validParams();
      18       14309 :   params.addRequiredCoupledVar("v", "The variable whose value we are to match.");
      19       14309 :   params.addClassDescription(
      20             :       "Implements a ADVectorNodalBC which equates two different Variables' values "
      21             :       "on a specified boundary.");
      22       14309 :   return params;
      23           0 : }
      24             : 
      25          22 : ADVectorMatchedValueBC::ADVectorMatchedValueBC(const InputParameters & parameters)
      26          22 :   : ADVectorNodalBC(parameters), _v(adCoupledNodalValue<RealVectorValue>("v"))
      27             : {
      28          22 : }
      29             : 
      30             : ADRealVectorValue
      31         360 : ADVectorMatchedValueBC::computeQpResidual()
      32             : {
      33         720 :   return _u - _v;
      34             : }

Generated by: LCOV version 1.14