LCOV - code coverage report
Current view: top level - src/kokkos/userobjects - KokkosGeneralUserObject.K (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #33416 (b10b36) with base 9fbd27 Lines: 12 17 70.6 %
Date: 2026-07-23 16:15:30 Functions: 2 3 66.7 %
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 "KokkosGeneralUserObject.h"
      11             : 
      12             : namespace Moose::Kokkos
      13             : {
      14             : 
      15             : InputParameters
      16        2228 : GeneralUserObject::validParams()
      17             : {
      18        2228 :   InputParameters params = UserObject::validParams();
      19        2228 :   params += ::MaterialPropertyInterface::validParams();
      20        2228 :   params += ::TransientInterface::validParams();
      21        2228 :   return params;
      22           0 : }
      23             : 
      24          51 : GeneralUserObject::GeneralUserObject(const InputParameters & parameters)
      25             :   : UserObject(parameters),
      26          27 :     MeshHolder(*_fe_problem.mesh().getKokkosMesh()),
      27          27 :     AssemblyHolder(_fe_problem.kokkosAssembly()),
      28          27 :     FESystemHolder(_fe_problem.getKokkosFESystems()),
      29             :     ::CoupleableMooseVariableDependencyIntermediateInterface(this, false),
      30             :     ::MaterialPropertyInterface(this, Moose::EMPTY_BLOCK_IDS, Moose::EMPTY_BOUNDARY_IDS),
      31          54 :     ::TransientInterface(this)
      32             : {
      33             :   // Kokkos user objects currently only consume variable information through finite element bases
      34             :   // and quadrature points
      35          51 :   for (auto * const var : getMooseVariableDependencies())
      36           0 :     var->requireQpComputations();
      37          51 : }
      38             : 
      39           0 : GeneralUserObject::GeneralUserObject(const GeneralUserObject & object)
      40             :   : UserObject(object),
      41             :     MeshHolder(object),
      42             :     AssemblyHolder(object),
      43             :     FESystemHolder(object),
      44             :     ::CoupleableMooseVariableDependencyIntermediateInterface(object, {}),
      45             :     ::MaterialPropertyInterface(object, {}),
      46           0 :     ::TransientInterface(object, {})
      47             : {
      48           0 : }
      49             : 
      50             : } // namespace Moose::Kokkos

Generated by: LCOV version 1.14