forked from idaholab/moose
/
ElementValueSampler.h
45 lines (35 loc) · 1.25 KB
/
ElementValueSampler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html
#ifndef ELEMENTVALUESAMPLER_H
#define ELEMENTVALUESAMPLER_H
#include "ElementVariableVectorPostprocessor.h"
#include "SamplerBase.h"
class ElementValueSampler;
template <>
InputParameters validParams<ElementValueSampler>();
/**
* Samples values of elemental variable(s).
*/
class ElementValueSampler : public ElementVariableVectorPostprocessor, protected SamplerBase
{
public:
ElementValueSampler(const InputParameters & parameters);
virtual void initialize() override;
virtual void execute() override;
virtual void finalize() override;
// Let the SamplerBase version of threadJoin() take part in the
// overload resolution process, otherwise we get warnings about
// overloaded virtual functions and "hiding" in debug mode.
using SamplerBase::threadJoin;
virtual void threadJoin(const UserObject & y) override;
protected:
/// So we don't have to create and destroy this vector over and over again
std::vector<Real> _values;
};
#endif