LCOV - code coverage report
Current view: top level - include/nodalkernels - GenericArrayNodalKernel.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 4 4 100.0 %
Date: 2026-05-29 20:35:17 Functions: 4 4 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 "ArrayNodalKernel.h"
      13             : #include "ADArrayNodalKernel.h"
      14             : 
      15             : /**
      16             :  * Template for array nodal kernels, using or not automatic differentiation
      17             :  */
      18             : template <bool is_ad>
      19             : class GenericArrayNodalKernel : public ArrayNodalKernel
      20             : {
      21             : public:
      22        3105 :   static InputParameters validParams() { return ArrayNodalKernel::validParams(); }
      23          23 :   GenericArrayNodalKernel(const InputParameters & parameters) : ArrayNodalKernel(parameters) {}
      24             : };
      25             : 
      26             : template <>
      27             : class GenericArrayNodalKernel<true> : public ADArrayNodalKernel
      28             : {
      29             : public:
      30        3105 :   static InputParameters validParams() { return ADArrayNodalKernel::validParams(); }
      31          23 :   GenericArrayNodalKernel(const InputParameters & parameters) : ADArrayNodalKernel(parameters) {}
      32             : };
      33             : 
      34             : #define usingGenericArrayNodalKernelMembers                                                        \
      35             :   using GenericArrayNodalKernel<is_ad>::_count;                                                    \
      36             :   using GenericArrayNodalKernel<is_ad>::_u;                                                        \
      37             :   using GenericArrayNodalKernel<is_ad>::_qp;                                                       \
      38             :   using GenericArrayNodalKernel<is_ad>::setJacobian;                                               \
      39             :   using GenericArrayNodalKernel<is_ad>::paramError

Generated by: LCOV version 1.14