LCOV - code coverage report
Current view: top level - include/mfem/bcs - MFEMEssentialBC.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 2 2 100.0 %
Date: 2025-07-17 01:28:37 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             : #ifdef MFEM_ENABLED
      11             : 
      12             : #pragma once
      13             : #include "MFEMBoundaryCondition.h"
      14             : 
      15             : class MFEMEssentialBC : public MFEMBoundaryCondition
      16             : {
      17             : public:
      18             :   static InputParameters validParams();
      19             : 
      20             :   MFEMEssentialBC(const InputParameters & parameters);
      21         170 :   virtual ~MFEMEssentialBC() = default;
      22             : 
      23             :   // Get name of the trial variable (gridfunction) the kernel acts on.
      24             :   // Defaults to the name of the test variable labelling the weak form.
      25           8 :   virtual const std::string & getTrialVariableName() const { return _test_var_name; }
      26             : 
      27             :   // Apply the essential BC, overwritign the values of gridfunc on the boundary as desired.
      28             :   virtual void ApplyBC(mfem::GridFunction & gridfunc) = 0;
      29             : };
      30             : 
      31             : #endif

Generated by: LCOV version 1.14