LCOV - code coverage report
Current view: top level - src/kokkos/postprocessors - KokkosElementVariablePostprocessor.K (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 10 11 90.9 %
Date: 2026-05-29 20:35:17 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://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             : #include "KokkosElementVariablePostprocessor.h"
      11             : 
      12             : #include "MooseVariable.h"
      13             : #include "SubProblem.h"
      14             : #include "MooseTypes.h"
      15             : 
      16             : InputParameters
      17        2302 : KokkosElementVariablePostprocessor::validParams()
      18             : {
      19        2302 :   InputParameters params = ElementPostprocessor::validParams();
      20        6906 :   params.addRequiredCoupledVar("variable",
      21             :                                "The name of the variable that this postprocessor operates on");
      22        2302 :   return params;
      23           0 : }
      24             : 
      25         102 : KokkosElementVariablePostprocessor::KokkosElementVariablePostprocessor(
      26         342 :     const InputParameters & parameters)
      27             :   : ElementPostprocessor(parameters),
      28             :     MooseVariableInterface<Real>(this,
      29             :                                  false,
      30             :                                  "variable",
      31             :                                  Moose::VarKindType::VAR_ANY,
      32             :                                  Moose::VarFieldType::VAR_FIELD_STANDARD),
      33          54 :     _u(kokkosCoupledValue("variable")),
      34         270 :     _grad_u(kokkosCoupledGradient("variable"))
      35             : {
      36         102 :   addMooseVariableDependency(&mooseVariableField());
      37         102 : }

Generated by: LCOV version 1.14