LCOV - code coverage report
Current view: top level - src/actions - AddLikelihoodAction.C (source / functions) Hit Total Coverage
Test: idaholab/moose stochastic_tools: f45d79 Lines: 10 11 90.9 %
Date: 2025-07-25 05:00:46 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 "AddLikelihoodAction.h"
      11             : #include "Factory.h"
      12             : #include "FEProblem.h"
      13             : #include "LikelihoodFunctionBase.h"
      14             : 
      15             : registerMooseAction("StochasticToolsApp", AddLikelihoodAction, "add_likelihood");
      16             : 
      17             : InputParameters
      18         344 : AddLikelihoodAction::validParams()
      19             : {
      20         344 :   InputParameters params = MooseObjectAction::validParams();
      21         344 :   params.addClassDescription("Adds Likelihood objects.");
      22         344 :   return params;
      23           0 : }
      24             : 
      25         344 : AddLikelihoodAction::AddLikelihoodAction(const InputParameters & params) : MooseObjectAction(params)
      26             : {
      27         344 : }
      28             : 
      29             : void
      30         344 : AddLikelihoodAction::act()
      31             : {
      32         684 :   _problem->addObject<LikelihoodFunctionBase>(
      33         344 :       _type, _name, _moose_object_pars, /* threaded = */ false);
      34         340 : }

Generated by: LCOV version 1.14