ConditionalMarker.h 2.33 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
42
// ==                                                                        ==
// ============================================================================

/** \file ConditionalMarker.h */

#ifndef AMDIS_CONDITIONALMARKER_H
#define AMDIS_CONDITIONALMARKER_H

#include "mpi.h"
#include "Marker.h"
#include "Marker.h"
#include "PartitionElementData.h"
#include "Traverse.h"
#include "ElInfo.h"

namespace AMDiS {

  /**
   * \ingroup Adaption
   * 
   * \brief
   * 
   */
  class ConditionalMarker : public Marker
  {
  public:
43
    /// Constructor.
44
    ConditionalMarker(const std::string name,
45
46
47
		      int row,
		      Marker *decoratedMarker,
		      int globalCoarseGridLevel,
48
49
		      int localCoarseGridLevel);
      
50

51
    /// Implementation of MarkScal::initMarking().
52
    virtual void initMarking(AdaptInfo *adaptInfo, Mesh *mesh);   
53

54
    virtual void finishMarking(AdaptInfo *adaptInfo);
55

56
    void markElement(AdaptInfo *adaptInfo, ElInfo *elInfo);
57
58
59
60
61

  protected:
    Marker *decoratedMarker_;
    int globalCoarseGridLevel_;
    int localCoarseGridLevel_;
62
    bool markOuter;
63
64
65
66
67
  };

}

#endif