LCOV - code coverage report
Current view: top level - src/actions - AddOptimizationReporterAction.C (source / functions) Hit Total Coverage
Test: idaholab/moose optimization: #31405 (292dce) with base fef103 Lines: 10 11 90.9 %
Date: 2025-09-04 07:54:57 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 "AddOptimizationReporterAction.h"
      11             : 
      12             : #include "FEProblemBase.h"
      13             : 
      14             : registerMooseAction("OptimizationApp", AddOptimizationReporterAction, "add_reporter");
      15             : 
      16             : InputParameters
      17         654 : AddOptimizationReporterAction::validParams()
      18             : {
      19         654 :   InputParameters params = MooseObjectAction::validParams();
      20         654 :   params.addClassDescription("Adds OptimizationReporter objects for optimization routines.");
      21         654 :   return params;
      22           0 : }
      23             : 
      24         654 : AddOptimizationReporterAction::AddOptimizationReporterAction(const InputParameters & params)
      25         654 :   : MooseObjectAction(params)
      26             : {
      27         654 : }
      28             : 
      29             : void
      30         654 : AddOptimizationReporterAction::act()
      31             : {
      32         654 :   _problem->addReporter(_type, _name, _moose_object_pars);
      33         654 : }

Generated by: LCOV version 1.14