Skip to content

Commit 0cf959c

Browse files
committed
Clean up FEType declaration a little
Alex pointed out that we could pull p_refinement out of the ifdefs here, and we should be able to do the same with order without changing struct ordering.
1 parent ef42d97 commit 0cf959c

1 file changed

Lines changed: 7 additions & 18 deletions

File tree

include/fe/fe_type.h

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,11 @@ class FEType
197197
{
198198
public:
199199

200+
/**
201+
* The approximation order of the element (at 0 p-refinement level).
202+
*/
203+
OrderWrapper order;
204+
200205
#ifndef LIBMESH_ENABLE_INFINITE_ELEMENTS
201206

202207
/**
@@ -216,23 +221,12 @@ class FEType
216221
p_refinement(true)
217222
{}
218223

219-
/**
220-
* The approximation order of the element (at 0 p-refinement level).
221-
*/
222-
OrderWrapper order;
223-
224224
/**
225225
* The type of finite element. Valid types are \p LAGRANGE,
226226
* \p HIERARCHIC, etc...
227227
*/
228228
FEFamily family;
229229

230-
/**
231-
* Whether or not the finite elements for this type increase their p
232-
* refinement level on geometric elements of increased p level.
233-
*/
234-
bool p_refinement;
235-
236230
#else
237231

238232
/**
@@ -263,11 +257,6 @@ class FEType
263257
p_refinement(true)
264258
{}
265259

266-
/**
267-
* The approximation order in the base of the infinite element.
268-
*/
269-
OrderWrapper order;
270-
271260
/**
272261
* The approximation order in radial direction of the infinite element.
273262
*/
@@ -294,14 +283,14 @@ class FEType
294283
*/
295284
InfMapType inf_map;
296285

286+
#endif // ifndef LIBMESH_ENABLE_INFINITE_ELEMENTS
287+
297288
/**
298289
* Whether or not the finite elements for this type increase their p
299290
* refinement level on geometric elements of increased p level.
300291
*/
301292
bool p_refinement;
302293

303-
#endif // ifndef LIBMESH_ENABLE_INFINITE_ELEMENTS
304-
305294
/**
306295
* "Fluent API" for constructing a non-default p_refinement, for
307296
* easier compatibility between non-InfFE and InfFE code

0 commit comments

Comments
 (0)