RefinementManager1d.h 2.26 KB
Newer Older
1
2
3
4
5
6
// ============================================================================
// ==                                                                        ==
// == AMDiS - Adaptive multidimensional simulations                          ==
// ==                                                                        ==
// ============================================================================
// ==                                                                        ==
7
// ==  TU Dresden                                                            ==
8
// ==                                                                        ==
9
10
11
// ==  Institut fr Wissenschaftliches Rechnen                               ==
// ==  Zellescher Weg 12-14                                                  ==
// ==  01069 Dresden                                                         ==
12
13
14
15
// ==  germany                                                               ==
// ==                                                                        ==
// ============================================================================
// ==                                                                        ==
16
// ==  https://gforge.zih.tu-dresden.de/projects/amdis/                      ==
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// ==                                                                        ==
// ============================================================================

/** \file RefinementManager1d.h */

#ifndef AMDIS_REFINEMENT_MANAGER_1D_H
#define AMDIS_REFINEMENT_MANAGER_1D_H

namespace AMDiS {

  /** \ingroup Adaption
   * \brief
   * Implements a RefinementManager for 1-dimensional meshes.
   */
  class RefinementManager1d : public RefinementManager
  {
  public:
34
    /// Calls base class constructor.
35
36
    RefinementManager1d()
      : RefinementManager()
37
    {}
38

39
40
    /// destructor 
    virtual ~RefinementManager1d() {}
41

42
    /// Implements RefinementManager::refineMesh.
43
44
    Flag refineMesh(Mesh *aMesh);

45
    /// Implements RefinementManager::setNewCoords
46
47
48
    void setNewCoords();

  protected:
49
    /// Used by refineMesh while mesh traversal
50
51
    static int recursiveRefineFunction(ElInfo* el_info);

52
    /// Used by \ref setNewCoords
53
54
55
56
57
58
    static int newCoordsFct(ElInfo *el_info);
  };

}

#endif // AMDIS_REFINEMENT_MANAGER_1D_H