fe_macro.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2014 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
3 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License, or (at your option) any later version.
8 
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
13 
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 
18 
19 #ifndef LIBMESH_FE_MACRO_H
20 #define LIBMESH_FE_MACRO_H
21 
22 
23 
24 
31 #define INSTANTIATE_MAPS(_dim,_type) \
32  template Point FE<_dim,_type>::map(const Elem*,const Point&);\
33  template Point FE<_dim,_type>::map_xi(const Elem*,const Point&);\
34  template Point FE<_dim,_type>::map_eta(const Elem*,const Point&);\
35  template Point FE<_dim,_type>::map_zeta(const Elem*,const Point&); \
36  template void FE<_dim,_type>::inverse_map(const Elem*,const std::vector<Point>&,std::vector<Point>&,Real,bool); \
37  template Point FE<_dim,_type>::inverse_map(const Elem*,const Point&,Real,bool)
38 
39 
40 #ifndef LIBMESH_ENABLE_HIGHER_ORDER_SHAPES
41 
42 #define INSTANTIATE_FE(_dim) template class FE< (_dim), CLOUGH>; \
43  template class FE< (_dim), HERMITE>; \
44  template class FE< (_dim), HIERARCHIC>; \
45  template class FE< (_dim), L2_HIERARCHIC>; \
46  template class FE< (_dim), LAGRANGE>; \
47  template class FE< (_dim), LAGRANGE_VEC>; \
48  template class FE< (_dim), L2_LAGRANGE>; \
49  template class FE< (_dim), MONOMIAL>; \
50  template class FE< (_dim), SCALAR>; \
51  template class FE< (_dim), XYZ>; \
52  template class FE< (_dim), NEDELEC_ONE>
53 
54 #define INSTANTIATE_ALL_MAPS(_dim) \
55  INSTANTIATE_MAPS(_dim,CLOUGH); \
56  INSTANTIATE_MAPS(_dim,HERMITE); \
57  INSTANTIATE_MAPS(_dim,HIERARCHIC); \
58  INSTANTIATE_MAPS(_dim,L2_HIERARCHIC); \
59  INSTANTIATE_MAPS(_dim,LAGRANGE); \
60  INSTANTIATE_MAPS(_dim,LAGRANGE_VEC); \
61  INSTANTIATE_MAPS(_dim,L2_LAGRANGE); \
62  INSTANTIATE_MAPS(_dim,MONOMIAL); \
63  INSTANTIATE_MAPS(_dim,SCALAR); \
64  INSTANTIATE_MAPS(_dim,XYZ); \
65  INSTANTIATE_MAPS(_dim,NEDELEC_ONE)
66 
67 #else //LIBMESH_ENABLE_HIGHER_ORDER_SHAPES
68 
69 #define INSTANTIATE_FE(_dim) template class FE< (_dim), CLOUGH>; \
70  template class FE< (_dim), HERMITE>; \
71  template class FE< (_dim), HIERARCHIC>; \
72  template class FE< (_dim), L2_HIERARCHIC>; \
73  template class FE< (_dim), LAGRANGE>; \
74  template class FE< (_dim), LAGRANGE_VEC>; \
75  template class FE< (_dim), L2_LAGRANGE>; \
76  template class FE< (_dim), MONOMIAL>; \
77  template class FE< (_dim), SCALAR>; \
78  template class FE< (_dim), BERNSTEIN>; \
79  template class FE< (_dim), SZABAB>; \
80  template class FE< (_dim), XYZ>; \
81  template class FE< (_dim), NEDELEC_ONE>
82 
83 #define INSTANTIATE_ALL_MAPS(_dim) \
84  INSTANTIATE_MAPS(_dim,CLOUGH); \
85  INSTANTIATE_MAPS(_dim,HERMITE); \
86  INSTANTIATE_MAPS(_dim,HIERARCHIC); \
87  INSTANTIATE_MAPS(_dim,L2_HIERARCHIC); \
88  INSTANTIATE_MAPS(_dim,LAGRANGE); \
89  INSTANTIATE_MAPS(_dim,LAGRANGE_VEC); \
90  INSTANTIATE_MAPS(_dim,L2_LAGRANGE); \
91  INSTANTIATE_MAPS(_dim,MONOMIAL); \
92  INSTANTIATE_MAPS(_dim,SCALAR); \
93  INSTANTIATE_MAPS(_dim,BERNSTEIN); \
94  INSTANTIATE_MAPS(_dim,SZABAB); \
95  INSTANTIATE_MAPS(_dim,XYZ); \
96  INSTANTIATE_MAPS(_dim,NEDELEC_ONE)
97 
98 #endif //LIBMESH_ENABLE_HIGHER_ORDER_SHAPES
99 
100 #endif // LIBMESH_FE_MACRO_H

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:05 UTC

Hosted By:
SourceForge.net Logo