LCOV - code coverage report
Current view: top level - include/kokkos/kernels - KokkosVectorDiffusion.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 329044 Lines: 4 4 100.0 %
Date: 2026-08-03 21:12:22 Functions: 2 2 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 "KokkosVectorKernelGrad.h"
      13             : 
      14             : /**
      15             :  * This vector kernel implements the Laplacian operator:
      16             :  * $\nabla \vec{u} : \nabla \vec{\phi_i}$
      17             :  */
      18             : class KokkosVectorDiffusion : public Moose::Kokkos::VectorKernelGrad
      19             : {
      20             : public:
      21             :   static InputParameters validParams();
      22             : 
      23             :   KokkosVectorDiffusion(const InputParameters & parameters);
      24             : 
      25             :   template <typename Derived>
      26             :   KOKKOS_FUNCTION Moose::Kokkos::Real33 precomputeQpResidual(const unsigned int qp,
      27             :                                                              AssemblyDatum & datum) const;
      28             :   template <typename Derived>
      29             :   KOKKOS_FUNCTION Moose::Kokkos::Real33
      30             :   precomputeQpJacobian(const unsigned int j, const unsigned int qp, AssemblyDatum & datum) const;
      31             : };
      32             : 
      33             : template <typename Derived>
      34             : KOKKOS_FUNCTION Moose::Kokkos::Real33
      35     1119657 : KokkosVectorDiffusion::precomputeQpResidual(const unsigned int qp, AssemblyDatum & datum) const
      36             : {
      37     1119657 :   return _grad_u(datum, qp);
      38             : }
      39             : 
      40             : template <typename Derived>
      41             : KOKKOS_FUNCTION Moose::Kokkos::Real33
      42     1712216 : KokkosVectorDiffusion::precomputeQpJacobian(const unsigned int j,
      43             :                                             const unsigned int qp,
      44             :                                             AssemblyDatum & datum) const
      45             : {
      46     1712216 :   return _grad_phi(datum, j, qp);
      47             : }

Generated by: LCOV version 1.14