www.mooseframework.org
TestSampler.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 TESTSAMPLERMATERIAL_H
9 #define TESTSAMPLERMATERIAL_H
10 
11 #include "ElementUserObject.h"
12 #include "SamplerInterface.h"
13 #include "Sampler.h"
14 
15 // Forward Declarations
16 class TestSampler;
17 
18 template <>
19 InputParameters validParams<TestSampler>();
20 
25 class TestSampler : public ElementUserObject, public SamplerInterface
26 {
27 public:
28  TestSampler(const InputParameters & parameters);
29 
30 protected:
31  virtual void execute() final {}
32  virtual void initialize() final {}
33  virtual void finalize() final;
34  virtual void threadJoin(const UserObject & uo) final;
35  Sampler & _sampler;
36  const MooseEnum & _test_type;
37 };
38 
39 #endif // TESTSAMPLERMATERIAL_H
TestSampler(const InputParameters &parameters)
Definition: TestSampler.C:22
InputParameters validParams< TestSampler >()
Definition: TestSampler.C:12
const MooseEnum & _test_type
Definition: TestSampler.h:36
UserObject for testing Sampler object threaded and parallel behavior, it should be used for anything ...
Definition: TestSampler.h:25
Sampler & _sampler
Definition: TestSampler.h:35
virtual void initialize() final
Definition: TestSampler.h:32
virtual void finalize() final
Definition: TestSampler.C:31
virtual void threadJoin(const UserObject &uo) final
Definition: TestSampler.C:53
virtual void execute() final
Definition: TestSampler.h:31