www.mooseframework.org
ScalarL2Error.h
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 #ifndef SCALARL2ERROR_H
16 #define SCALARL2ERROR_H
17 
18 // MOOSE includes
19 #include "GeneralPostprocessor.h"
20 
21 // Forward Declarations
22 class Function;
23 class ScalarL2Error;
25 
26 template <>
28 
34 {
35 public:
37 
38  virtual void initialize() override;
39  virtual void execute() override;
40 
44  virtual Real getValue() override;
45 
46 protected:
49 };
50 
51 #endif // SCALARL2ERROR_H
InputParameters validParams< ScalarL2Error >()
Definition: ScalarL2Error.C:24
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
Definition: ScalarL2Error.C:40
Base class for function objects.
Definition: Function.h:46
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Function & _func
Definition: ScalarL2Error.h:48
This class is here to combine the Postprocessor interface and the base class Postprocessor object alo...
virtual void execute() override
Execute method.
Definition: ScalarL2Error.C:45
virtual Real getValue() override
Get the L2 Error.
Definition: ScalarL2Error.C:50
MooseVariableScalar & _var
Definition: ScalarL2Error.h:47
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
Class for scalar variables (they are different).
ScalarL2Error(const InputParameters &parameters)
Definition: ScalarL2Error.C:32
Postprocessor for computing the error in a scalar value relative to a known Function&#39;s value...
Definition: ScalarL2Error.h:33