www.mooseframework.org
SamplerData.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef SAMPLERDATA_H
9 #define SAMPLERDATA_H
10 
11 // MOOSE includes
12 #include "GeneralVectorPostprocessor.h"
13 #include "SamplerInterface.h"
14 
15 class SamplerData;
16 
17 template <>
18 InputParameters validParams<SamplerData>();
19 
23 class SamplerData : public GeneralVectorPostprocessor, SamplerInterface
24 {
25 public:
26  SamplerData(const InputParameters & parameters);
27  void virtual initialize() override;
28  void virtual execute() override;
29 
30 protected:
32  std::vector<VectorPostprocessorValue *> _sample_vectors;
33 
35  Sampler & _sampler;
36 
38  const bool & _output_col_row_sizes;
39 };
40 
41 #endif
std::vector< VectorPostprocessorValue * > _sample_vectors
Storage for declared vectors.
Definition: SamplerData.h:32
SamplerData(const InputParameters &parameters)
Definition: SamplerData.C:32
virtual void initialize() override
Definition: SamplerData.C:41
const bool & _output_col_row_sizes
Whether to output the number of rows and columns in the first two rows of output. ...
Definition: SamplerData.h:38
Sampler & _sampler
The sampler to extract data.
Definition: SamplerData.h:35
virtual void execute() override
Definition: SamplerData.C:48
A tool for output Sampler data.
Definition: SamplerData.h:23
InputParameters validParams< SamplerData >()
Definition: SamplerData.C:16