LCOV - code coverage report
Current view: top level - include/kokkos/bcs - KokkosPostprocessorNeumannBC.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 2 2 100.0 %
Date: 2026-05-29 20:35:17 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 "KokkosIntegratedBCValue.h"
      13             : 
      14             : /**
      15             :  * Implements a constant Neumann BC where grad(u) is a equal to a postprocessor on the boundary.
      16             :  * Uses the term produced from integrating the diffusion operator by parts.
      17             :  */
      18             : class KokkosPostprocessorNeumannBC : public Moose::Kokkos::IntegratedBCValue
      19             : {
      20             : public:
      21             :   /**
      22             :    * Factory constructor, takes parameters so that all derived classes can be built using the same
      23             :    * constructor.
      24             :    */
      25             :   static InputParameters validParams();
      26             : 
      27             :   KokkosPostprocessorNeumannBC(const InputParameters & parameters);
      28             : 
      29             :   template <typename Derived>
      30             :   KOKKOS_FUNCTION Real computeQpResidual(const unsigned int, AssemblyDatum &) const;
      31             : 
      32             : protected:
      33             :   /// Value of grad(u) on the boundary.
      34             :   Moose::Kokkos::PostprocessorValue _value;
      35             : };
      36             : 
      37             : template <typename Derived>
      38             : KOKKOS_FUNCTION Real
      39        6240 : KokkosPostprocessorNeumannBC::computeQpResidual(const unsigned int, AssemblyDatum &) const
      40             : {
      41        6240 :   return -_value;
      42             : }

Generated by: LCOV version 1.14