| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * @file defs.hpp
|
|---|
| 3 | * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
|
|---|
| 4 | * @date Tue Apr 5 19:40:03 2011
|
|---|
| 5 | *
|
|---|
| 6 | * @brief Very basic types get defined here.
|
|---|
| 7 | *
|
|---|
| 8 | *
|
|---|
| 9 | */
|
|---|
| 10 |
|
|---|
| 11 | #ifndef DEFS_HPP_
|
|---|
| 12 | #define DEFS_HPP_
|
|---|
| 13 |
|
|---|
| 14 | #include <cassert>
|
|---|
| 15 |
|
|---|
| 16 | namespace VMG
|
|---|
| 17 | {
|
|---|
| 18 |
|
|---|
| 19 | /**
|
|---|
| 20 | * Some commands may want to control the control flow of
|
|---|
| 21 | * the command list they belong to. This can be achieved
|
|---|
| 22 | * by returning one of these values.
|
|---|
| 23 | *
|
|---|
| 24 | */
|
|---|
| 25 | enum Request {
|
|---|
| 26 | Continue, ///< Continue execution normally
|
|---|
| 27 | StopCycleNow, ///< Stop execution of command list immediately
|
|---|
| 28 | StopCycleLater ///< Stop execution of loop after execution of all commands.
|
|---|
| 29 | };
|
|---|
| 30 |
|
|---|
| 31 | /**
|
|---|
| 32 | * This enum specifies the available boundary conditions.
|
|---|
| 33 | *
|
|---|
| 34 | */
|
|---|
| 35 | enum BC {
|
|---|
| 36 | Periodic,
|
|---|
| 37 | Dirichlet,
|
|---|
| 38 | Quasiperiodic
|
|---|
| 39 | };
|
|---|
| 40 |
|
|---|
| 41 | /**
|
|---|
| 42 | * The boundaries at different grid levels may have to
|
|---|
| 43 | * be handled differently. This enum specifies the type
|
|---|
| 44 | * of the grid level.
|
|---|
| 45 | *
|
|---|
| 46 | */
|
|---|
| 47 | enum BT {
|
|---|
| 48 | LocallyRefined, ///< For adaptive grids. Level is above the finest global grid.
|
|---|
| 49 | GlobalMax, ///< Finest global grid.
|
|---|
| 50 | GlobalCoarsened, ///< Coarse global grid.
|
|---|
| 51 | EmptyGrid ///< This grid does not contain any data. May be useful for parallelization
|
|---|
| 52 | };
|
|---|
| 53 |
|
|---|
| 54 | }
|
|---|
| 55 |
|
|---|
| 56 | #endif /* DEFS_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.