LCOV - code coverage report
Current view: top level - src/surrogates - SurrogateModel.C (source / functions) Hit Total Coverage
Test: idaholab/moose stochastic_tools: f45d79 Lines: 14 15 93.3 %
Date: 2025-07-25 05:00:46 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://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 "SurrogateModel.h"
      11             : #include "SurrogateTrainer.h"
      12             : #include "Sampler.h"
      13             : #include "StochasticToolsApp.h"
      14             : 
      15             : InputParameters
      16        9646 : SurrogateModel::validParams()
      17             : {
      18        9646 :   InputParameters params = MooseObject::validParams();
      19        9646 :   params += SamplerInterface::validParams();
      20        9646 :   params += SurrogateModelInterface::validParams();
      21        9646 :   params += RestartableModelInterface::validParams();
      22       19292 :   params.addParam<UserObjectName>(
      23             :       "trainer",
      24             :       "The SurrogateTrainer object. If this is specified the trainer data is automatically "
      25             :       "gathered and available in this SurrogateModel object.");
      26        9646 :   params.registerBase("SurrogateModel");
      27        9646 :   params.registerSystemAttributeName("SurrogateModel");
      28        9646 :   return params;
      29           0 : }
      30             : 
      31        1442 : SurrogateModel::SurrogateModel(const InputParameters & parameters)
      32             :   : MooseObject(parameters),
      33             :     SamplerInterface(this),
      34             :     SurrogateModelInterface(this),
      35             :     RestartableModelInterface(*this,
      36             :                               /*read_only=*/true,
      37        2884 :                               isParamValid("trainer")
      38        3512 :                                   ? getSurrogateTrainer("trainer").modelMetaDataName()
      39        5582 :                                   : _type + "_" + name())
      40             : {
      41        1442 : }

Generated by: LCOV version 1.14