LCOV - code coverage report
Current view: top level - src/kokkos/actions - KokkosObjectAction.K (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 6f668f Lines: 9 11 81.8 %
Date: 2025-09-22 20:01:15 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        3765 : KokkosObjectAction::validParams()
      15             : {
      16        3765 :   InputParameters params = MooseObjectAction::validParams();
      17        7530 :   params.addPrivateParam<bool>("_kokkos_action", true);
      18        3765 :   return params;
      19           0 : }
      20             : 
      21        3285 : KokkosObjectAction::KokkosObjectAction(const InputParameters & params,
      22        3285 :                                        const std::string object_type)
      23        2526 :   : MooseObjectAction(params)
      24             : {
      25        3285 :   if (!_app.isKokkosAvailable())
      26           0 :     mooseError(
      27             :         "Attempted to add a Kokkos ", object_type, " but no GPU was detected in the system.");
      28        3285 : }

Generated by: LCOV version 1.14