LCOV - code coverage report
Current view: top level - include/bcs - NodalBCBase.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 1 1 100.0 %
Date: 2025-07-17 01:28:37 Functions: 1 1 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             : #pragma once
      11             : 
      12             : #include "BoundaryCondition.h"
      13             : #include "RandomInterface.h"
      14             : #include "CoupleableMooseVariableDependencyIntermediateInterface.h"
      15             : 
      16             : // libMesh forward declarations
      17             : namespace libMesh
      18             : {
      19             : template <typename T>
      20             : class NumericVector;
      21             : }
      22             : 
      23             : /**
      24             :  * Base class for deriving any boundary condition that works at nodes
      25             :  */
      26             : class NodalBCBase : public BoundaryCondition,
      27             :                     public CoupleableMooseVariableDependencyIntermediateInterface
      28             : {
      29             : public:
      30             :   static InputParameters validParams();
      31             : 
      32             :   NodalBCBase(const InputParameters & parameters);
      33             : 
      34             :   /**
      35             :    * Whether to verify that this object is acting on a nodal variable
      36             :    */
      37       67229 :   virtual bool checkNodalVar() const { return true; }
      38             : 
      39             : protected:
      40             :   /// The aux variables to save the residual contributions to
      41             :   bool _has_save_in;
      42             :   std::vector<MooseVariableFEBase *> _save_in;
      43             :   std::vector<AuxVariableName> _save_in_strings;
      44             : 
      45             :   /// The aux variables to save the diagonal Jacobian contributions to
      46             :   bool _has_diag_save_in;
      47             :   std::vector<MooseVariableFEBase *> _diag_save_in;
      48             :   std::vector<AuxVariableName> _diag_save_in_strings;
      49             : };

Generated by: LCOV version 1.14