LCOV - code coverage report
Current view: top level - src/actions - AddDGKernelAction.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 1f9d31 Lines: 9 10 90.0 %
Date: 2025-09-02 20:01:20 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 "AddDGKernelAction.h"
      11             : #include "FEProblem.h"
      12             : #include "NonlinearSystem.h"
      13             : 
      14             : registerMooseAction("MooseApp", AddDGKernelAction, "add_dg_kernel");
      15             : 
      16             : InputParameters
      17        1545 : AddDGKernelAction::validParams()
      18             : {
      19        1545 :   InputParameters params = MooseObjectAction::validParams();
      20        1545 :   params.addClassDescription("Add a DGKernel object to the simulation.");
      21        1545 :   return params;
      22           0 : }
      23             : 
      24        1342 : AddDGKernelAction::AddDGKernelAction(const InputParameters & params) : MooseObjectAction(params) {}
      25             : 
      26             : void
      27        1334 : AddDGKernelAction::act()
      28             : {
      29        1334 :   if (_current_task == "add_dg_kernel")
      30        1334 :     _problem->addDGKernel(_type, _name, _moose_object_pars);
      31        1330 : }

Generated by: LCOV version 1.14