LCOV - code coverage report
Current view: top level - include/kokkos/bcs - KokkosVectorDirichletBC.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 329044 Lines: 2 2 100.0 %
Date: 2026-08-03 21:12:22 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://www.mooseframework.org
       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 "KokkosVectorNodalBC.h"
      13             : 
      14             : class KokkosVectorDirichletBC : public Moose::Kokkos::VectorNodalBC
      15             : {
      16             : public:
      17             :   static InputParameters validParams();
      18             : 
      19             :   KokkosVectorDirichletBC(const InputParameters & parameters);
      20             :   KokkosVectorDirichletBC(const KokkosVectorDirichletBC & object);
      21             : 
      22             :   template <typename Derived>
      23        2508 :   KOKKOS_FUNCTION Moose::Kokkos::Real3 computeQpResidual(const unsigned int qp,
      24             :                                                          AssemblyDatum & datum) const
      25             :   {
      26        2508 :     return _u(datum, qp) - _values;
      27             :   }
      28             : 
      29             : protected:
      30             :   const RealVectorValue & _values_host;
      31             :   const Moose::Kokkos::Real3 _values;
      32             : };

Generated by: LCOV version 1.14