Hermes2D  3.0
shapeset_hc_all.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_SHAPESET_HC_ALL_H
17 #define __H2D_SHAPESET_HC_ALL_H
18 
19 #include "shapeset.h"
20 
21 namespace Hermes
22 {
23  namespace Hermes2D
24  {
26  class HERMES_API HcurlShapesetGradLeg : public Shapeset
27  {
28  public:
30  virtual Shapeset* clone() { return new HcurlShapesetGradLeg(*this); };
31  virtual unsigned short get_max_index(ElementMode2D mode) const;
32  virtual unsigned char get_id() const { return HERMES_HCURL_GRADLEG; }
33  virtual SpaceType get_space_type() const { return HERMES_HCURL_SPACE; }
34 
35  static const unsigned short max_index[H2D_NUM_MODES];
36  };
37 
40  }
41 }
42 #endif
Definition: adapt.h:24
HcurlShapesetGradLeg HcurlShapeset
This is the default Hcurl shapeset typedef.
virtual SpaceType get_space_type() const
#define H2D_NUM_MODES
Internal.
Definition: global.h:35
H(curl) shapeset with Legendre bubbles and gradients of H1 functions as edges.
Should be exactly the same as is the count of enum ShapesetType.
Definition: shapeset.h:95
virtual unsigned char get_id() const