LCOV - code coverage report
Current view: top level - src/actions - AddOutputAction.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 11 11 100.0 %
Date: 2025-07-17 01:28:37 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             : // MOOSE includes
      11             : #include "AddOutputAction.h"
      12             : #include "FEProblem.h"
      13             : #include "Factory.h"
      14             : #include "OutputWarehouse.h"
      15             : #include "Output.h"
      16             : #include "MooseApp.h"
      17             : #include "FileMesh.h"
      18             : #include "MooseApp.h"
      19             : 
      20             : #include "libmesh/mesh_function.h"
      21             : #include "libmesh/mesh_refinement.h"
      22             : #include "libmesh/explicit_system.h"
      23             : 
      24             : registerMooseAction("MooseApp", AddOutputAction, "add_output");
      25             : 
      26             : InputParameters
      27       89270 : AddOutputAction::validParams()
      28             : {
      29       89270 :   InputParameters params = MooseObjectAction::validParams();
      30       89270 :   params.addClassDescription("Action responsible for creating Output objects.");
      31             :   // This is to help with input file validation.  FEProblem adds file_base to
      32             :   // all objects that don't have it set from the input file.
      33      178540 :   params.set<std::vector<std::string>>("_object_params_set_by_action") = {"file_base"};
      34       89270 :   return params;
      35      178540 : }
      36             : 
      37      237884 : AddOutputAction::AddOutputAction(const InputParameters & params) : MooseObjectAction(params) {}
      38             : 
      39             : void
      40      219781 : AddOutputAction::act()
      41             : {
      42      219781 :   if (_current_task == "add_output")
      43      219781 :     _problem->addOutput(_type, _name, _moose_object_pars);
      44      219753 : }

Generated by: LCOV version 1.14