LCOV - code coverage report
Current view: top level - src/outputs - AdvancedOutputUtils.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #33380 (547b29) with base 8581c3 Lines: 41 41 100.0 %
Date: 2026-07-20 19:36:28 Functions: 4 4 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 "AdvancedOutputUtils.h"
      12             : #include "Output.h"
      13             : #include "InputParameters.h"
      14             : 
      15             : void
      16     2139708 : OutputData::reset()
      17             : {
      18     2139708 :   available.clear();
      19     2139708 :   show.clear();
      20     2139708 :   hide.clear();
      21     2139708 :   output.clear();
      22     2139708 : }
      23             : 
      24             : // Constructor of OutputOnWarehouse; initializes the MultiMooseEnums for all available output types
      25      405372 : OutputOnWarehouse::OutputOnWarehouse(const ExecFlagEnum & execute_on,
      26      405372 :                                      const InputParameters & parameters)
      27      405372 :   : OutputMapWrapper<ExecFlagEnum>()
      28             : {
      29             :   // Initialize each of the 'execute_on' settings for the various types of outputs
      30      405372 :   if (parameters.have_parameter<ExecFlagEnum>("execute_nodal_on"))
      31       73821 :     _map.insert(std::make_pair("nodal", execute_on));
      32             : 
      33      405372 :   if (parameters.have_parameter<ExecFlagEnum>("execute_elemental_on"))
      34       73821 :     _map.insert(std::make_pair("elemental", execute_on));
      35             : 
      36      405372 :   if (parameters.have_parameter<ExecFlagEnum>("execute_scalars_on"))
      37      227971 :     _map.insert(std::make_pair("scalars", execute_on));
      38             : 
      39      405372 :   if (parameters.have_parameter<ExecFlagEnum>("execute_postprocessors_on"))
      40      227971 :     _map.insert(std::make_pair("postprocessors", execute_on));
      41             : 
      42      405372 :   if (parameters.have_parameter<ExecFlagEnum>("execute_vector_postprocessors_on"))
      43      153750 :     _map.insert(std::make_pair("vector_postprocessors", execute_on));
      44             : 
      45      405372 :   if (parameters.have_parameter<ExecFlagEnum>("execute_reporters_on"))
      46      231379 :     _map.insert(std::make_pair("reporters", execute_on));
      47             : 
      48      405372 :   if (parameters.have_parameter<ExecFlagEnum>("execute_input_on"))
      49      196777 :     _map.insert(std::make_pair("input", MooseUtils::getDefaultExecFlagEnum()));
      50             : 
      51      405372 :   if (parameters.have_parameter<ExecFlagEnum>("execute_system_information_on"))
      52             :   {
      53      126364 :     ExecFlagEnum flags = MooseUtils::getDefaultExecFlagEnum();
      54      126364 :     flags = EXEC_INITIAL;
      55      126364 :     _map.insert(std::make_pair("system_information", flags));
      56      126364 :   }
      57      405372 : }
      58             : 
      59             : // Constructor of OutputDataWarehouse; initializes the OutputData structures for 'variable' based
      60             : // output types
      61      116366 : OutputDataWarehouse::OutputDataWarehouse() : OutputMapWrapper<OutputData>(), _has_show_list(false)
      62             : {
      63      349098 :   _map["nodal"] = OutputData();
      64      349098 :   _map["elemental"] = OutputData();
      65      349098 :   _map["scalars"] = OutputData();
      66      349098 :   _map["postprocessors"] = OutputData();
      67      349098 :   _map["vector_postprocessors"] = OutputData();
      68      349098 :   _map["reporters"] = OutputData();
      69      116366 : }
      70             : 
      71             : void
      72      356618 : OutputDataWarehouse::reset()
      73             : {
      74     2496326 :   for (auto map_pair : _map)
      75     2139708 :     map_pair.second.reset();
      76      356618 : }

Generated by: LCOV version 1.14