www.mooseframework.org
AdvancedOutputUtils.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 // MOOSE includes
16 #include "AdvancedOutputUtils.h"
17 #include "Output.h"
18 #include "InputParameters.h"
19 
20 // Constructor of OutputOnWarehouse; initializes the MultiMooseEnums for all available output types
22  const InputParameters & parameters)
24 {
25  // Initialize each of the 'execute_on' settings for the various types of outputs
26  if (parameters.have_parameter<MultiMooseEnum>("execute_nodal_on"))
27  _map.insert(std::make_pair("nodal", execute_on));
28 
29  if (parameters.have_parameter<MultiMooseEnum>("execute_elemental_on"))
30  _map.insert(std::make_pair("elemental", execute_on));
31 
32  if (parameters.have_parameter<MultiMooseEnum>("execute_scalars_on"))
33  _map.insert(std::make_pair("scalars", execute_on));
34 
35  if (parameters.have_parameter<MultiMooseEnum>("execute_postprocessors_on"))
36  _map.insert(std::make_pair("postprocessors", execute_on));
37 
38  if (parameters.have_parameter<MultiMooseEnum>("execute_vector_postprocessors_on"))
39  _map.insert(std::make_pair("vector_postprocessors", execute_on));
40 
41  if (parameters.have_parameter<MultiMooseEnum>("execute_input_on"))
42  _map.insert(std::make_pair("input", Output::getExecuteOptions()));
43 
44  if (parameters.have_parameter<MultiMooseEnum>("execute_system_information_on"))
45  _map.insert(std::make_pair("system_information", Output::getExecuteOptions("initial")));
46 }
47 
48 // Constructor of OutputDataWarehouse; initializes the OutputData structures for 'variable' based
49 // output types
51 {
52  _map["nodal"] = OutputData();
53  _map["elemental"] = OutputData();
54  _map["scalars"] = OutputData();
55  _map["postprocessors"] = OutputData();
56  _map["vector_postprocessors"] = OutputData();
57 }
std::map< std::string, MultiMooseEnum > _map
Data storage.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
A structure for storing the various lists that contain the names of the items to be exported...
In newer versions of Clang calling operator[] on a map with a component that has a default constructo...
OutputOnWarehouse(const MultiMooseEnum &execute_on, const InputParameters &parameters)
Constructor.
OutputDataWarehouse()
Populate the OutputData structures for all output types that are &#39;variable&#39; based.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
static MultiMooseEnum getExecuteOptions()
Returns the available options for the &#39;execute_on&#39; input parameters.