LCOV - code coverage report
Current view: top level - src/actions - AddOutputAction.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 1f9d31 Lines: 11 11 100.0 %
Date: 2025-09-02 20:01:20 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       97938 : AddOutputAction::validParams()
      28             : {
      29       97938 :   InputParameters params = MooseObjectAction::validParams();
      30       97938 :   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      293814 :   params.set<std::vector<std::string>>("_object_params_set_by_action") = {"file_base"};
      34       97938 :   return params;
      35      293814 : }
      36             : 
      37      260010 : AddOutputAction::AddOutputAction(const InputParameters & params) : MooseObjectAction(params) {}
      38             : 
      39             : void
      40      240361 : AddOutputAction::act()
      41             : {
      42      240361 :   if (_current_task == "add_output")
      43      240361 :     _problem->addOutput(_type, _name, _moose_object_pars);
      44      240333 : }

Generated by: LCOV version 1.14