ConditionalEstimator.h 2.31 KB
Newer Older
1
2
3
4
5
6
// ============================================================================
// ==                                                                        ==
// == AMDiS - Adaptive multidimensional simulations                          ==
// ==                                                                        ==
// ============================================================================
// ==                                                                        ==
7
// ==  crystal growth group                                                  ==
8
// ==                                                                        ==
9
10
11
// ==  Stiftung caesar                                                       ==
// ==  Ludwig-Erhard-Allee 2                                                 ==
// ==  53175 Bonn                                                            ==
12
13
14
15
// ==  germany                                                               ==
// ==                                                                        ==
// ============================================================================
// ==                                                                        ==
16
// ==  http://www.caesar.de/cg/AMDiS                                         ==
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
// ==                                                                        ==
// ============================================================================

/** \file ConditionalEstimator.h */

/** \defgroup Estimator Estimator module
 * @{ <img src="estimator.png"> @}
 */

#ifndef AMDIS_CONDITIONALESTIMATOR_H
#define AMDIS_CONDITIONALESTIMATOR_H

#include "Estimator.h"

namespace AMDiS {

  /**
   * \ingroup Estimator
   * 
   * \brief
   * Estimator for scalar problems.
   */
  class ConditionalEstimator : public Estimator
  {
  public:
42
43
44
45
46
    /**
     * Reads the estimateOuter parameter. default value is false! 
     * (i.e.: the ouer part is not estimated)
     */
    ConditionalEstimator(Estimator *decorated);
47
48
49

    double estimate(double timestep);

Thomas Witkowski's avatar
Thomas Witkowski committed
50
51
    inline int getElementCount() 
    {
52
      return elementCount_;
53
    }
54

Thomas Witkowski's avatar
Thomas Witkowski committed
55
56
    inline Estimator *getDecoratedEstimator() 
    { 
57
58
      return decoratedEstimator_; 
    }
59
60
61
62
63
64
65

  protected:
    Estimator *decoratedEstimator_;

    int elementCount_;

    int row_;
66
67
  
    bool estimateOut;
68
69
70
71
72
  };

}

#endif // AMDIS_ESTIMATOR_H