LCOV - code coverage report
Current view: top level - src/kokkos/actions - KokkosObjectAction.K (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #31653 (1b668c) with base bb0a08 Lines: 9 11 81.8 %
Date: 2025-11-03 17:02:13 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             : #include "KokkosObjectAction.h"
      11             : #include "FEProblem.h"
      12             : 
      13             : InputParameters
      14        4834 : KokkosObjectAction::validParams()
      15             : {
      16        4834 :   InputParameters params = MooseObjectAction::validParams();
      17        9668 :   params.addPrivateParam<bool>("_kokkos_action", true);
      18        4834 :   return params;
      19           0 : }
      20             : 
      21        4114 : KokkosObjectAction::KokkosObjectAction(const InputParameters & params,
      22        4114 :                                        const std::string object_type)
      23        3244 :   : MooseObjectAction(params)
      24             : {
      25        4114 :   if (!_app.isKokkosAvailable())
      26           0 :     mooseError(
      27             :         "Attempted to add a Kokkos ", object_type, " but no GPU was detected in the system.");
      28        4114 : }

Generated by: LCOV version 1.14