LCOV - code coverage report
Current view: top level - src/actions - AddNodalKernelAction.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #31761 (28487c) with base 701993 Lines: 12 13 92.3 %
Date: 2025-11-11 13:51:07 Functions: 3 3 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 "AddNodalKernelAction.h"
      11             : #include "FEProblem.h"
      12             : 
      13             : registerMooseAction("MooseApp", AddNodalKernelAction, "add_nodal_kernel");
      14             : 
      15             : InputParameters
      16        1095 : AddNodalKernelAction::validParams()
      17             : {
      18        1095 :   InputParameters params = MooseObjectAction::validParams();
      19        1095 :   params.addClassDescription("Add a NodalKernel object to the simulation.");
      20        1095 :   return params;
      21           0 : }
      22             : 
      23         892 : AddNodalKernelAction::AddNodalKernelAction(const InputParameters & params)
      24         892 :   : MooseObjectAction(params)
      25             : {
      26         892 : }
      27             : 
      28             : void
      29         892 : AddNodalKernelAction::act()
      30             : {
      31             : #ifdef MOOSE_KOKKOS_ENABLED
      32         680 :   if (_moose_object_pars.isParamValid(MooseBase::kokkos_object_param))
      33         272 :     _problem->addKokkosNodalKernel(_type, _name, _moose_object_pars);
      34             :   else
      35             : #endif
      36         620 :     _problem->addNodalKernel(_type, _name, _moose_object_pars);
      37         888 : }

Generated by: LCOV version 1.14