AdaptStationary.h 1.79 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/******************************************************************************
 *
 * AMDiS - Adaptive multidimensional simulations
 *
 * Copyright (C) 2013 Dresden University of Technology. All Rights Reserved.
 * Web: https://fusionforge.zih.tu-dresden.de/projects/amdis
 *
 * Authors: 
 * Simon Vey, Thomas Witkowski, Andreas Naumann, Simon Praetorius, et al.
 *
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 *
 *
 * This file is part of AMDiS
 *
 * See also license.opensource.txt in the distribution.
 * 
 ******************************************************************************/
20
21


22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

/** \file AdaptStationary.h */

/** \defgroup Adaption Adaption module
 * @{ <img src="adaption.png"> @}
 *
 * \brief
 * Contains all classes needed for adaption.
 */

#ifndef AMDIS_ADPATSTATIONARY_H
#define AMDIS_ADPATSTATIONARY_H

#include <string>
#include "Flag.h"
#include "AdaptInfo.h"
#include "AdaptBase.h"
39
#include "AMDiS_fwd.h"
40
41
42
43
44
45
46
47
48
49
50

namespace AMDiS {

  /** \ingroup Adaption 
   * \brief
   * AdaptStationary contains information about the adaptive procedure and the
   * adapt procedure itself
   */
  class AdaptStationary : public AdaptBase
  {
  public:
51
    /// Creates a AdaptStationary object with given name. TODO: Make obsolete!
52
    AdaptStationary(std::string name,
53
		    ProblemIterationInterface *prob,
Thomas Witkowski's avatar
Thomas Witkowski committed
54
		    AdaptInfo *info);
55

56
    /// Creates a AdaptStationary object with given name.
57
    AdaptStationary(std::string name,
58
59
60
		    ProblemIterationInterface &prob,
		    AdaptInfo &info);

61
    /// Destructor
Thomas Witkowski's avatar
* Bla    
Thomas Witkowski committed
62
    virtual ~AdaptStationary() {}
63

64
    /// Implementation of AdaptBase::adapt()
65
    int adapt() override;
66
67

  protected:
68
    /// Initialisation 
69
70
71
72
73
74
    void initialize();
  };

}

#endif // AMDIS_ADPATSTATIONARY_H