Hermes2D  2.0
refinement_type.h
1 // This file is part of Hermes2D.
2 //
3 // Hermes2D is free software: you can redistribute it and/or modify
4 // it under the terms of the GNU General Public License as published by
5 // the Free Software Foundation, either version 2 of the License, or
6 // (at your option) any later version.
7 //
8 // Hermes2D is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with Hermes2D. If not, see <http://www.gnu.org/licenses/>.
15 
16 #ifndef __H2D_REFINEMENT_TYPE_H
17 #define __H2D_REFINEMENT_TYPE_H
18 
19 #include "../global.h"
20 
22 enum RefinementType {
23  H2D_REFINEMENT_P = -1,
24  H2D_REFINEMENT_H = 0,
25  H2D_REFINEMENT_ANISO_H = 1,
26  H2D_REFINEMENT_ANISO_V = 2
27 };
28 
30 
32 extern HERMES_API bool is_refin_aniso(const int refin_type);
33 
35 
37 extern HERMES_API int get_refin_sons(const int refin_type);
38 
40 
43 extern HERMES_API const std::string get_refin_str(const int refin_type);
44 
45 #endif