LCOV - code coverage report
Current view: top level - src/actions - AddCovarianceAction.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 "AddCovarianceAction.h"
      11             : #include "Factory.h"
      12             : #include "FEProblem.h"
      13             : #include "CovarianceFunctionBase.h"
      14             : 
      15             : registerMooseAction("StochasticToolsApp", AddCovarianceAction, "add_covariance");
      16             : 
      17             : InputParameters
      18         390 : AddCovarianceAction::validParams()
      19             : {
      20         390 :   InputParameters params = MooseObjectAction::validParams();
      21         390 :   params.addClassDescription("Adds Covariance objects contained within "
      22             :                              "the `[Trainers]` and `[Surrogates]` input blocks.");
      23         390 :   return params;
      24           0 : }
      25             : 
      26         390 : AddCovarianceAction::AddCovarianceAction(const InputParameters & params) : MooseObjectAction(params)
      27             : {
      28         390 : }
      29             : 
      30             : void
      31         390 : AddCovarianceAction::act()
      32             : {
      33         780 :   _problem->addObject<CovarianceFunctionBase>(
      34         390 :       _type, _name, _moose_object_pars, /* threaded = */ false);
      35         390 : }

Generated by: LCOV version 1.14