DOpE
sth_internals.h
Go to the documentation of this file.
1 
24 #ifndef _STH_INTERNALS_H_
25 #define _STH_INTERNALS_H_
26 
27 #include "mapping_wrapper.h"
28 
29 #include <dofs/dof_tools.h>
30 #include <fe/mapping_q1.h>
31 #include <hp/mapping_collection.h>
32 
33 #include "dofhandler_wrapper.h"
34 
35 using namespace dealii;
36 
37 namespace DOpE
38 {
39  namespace STHInternals
40  {
45  template<typename VECTOR, int dealdim>
46  void
50  VECTOR& support_points)
51  {
52 
53 // MappingQ1 < dealdim > mapping;
54 
55  DoFTools::map_dofs_to_support_points(mapping, dh, support_points);
56  }
57 
62  template<typename VECTOR, int dealdim>
63  void
67  VECTOR& support_points)
68  {
69 
70 // MappingQ1 < dealdim > mapping;
71 
72  DoFTools::map_dofs_to_support_points(mapping, dh, support_points);
73  }
74 
79  template<typename VECTOR, int dealdim>
80  void
84  VECTOR& support_points)
85  {
86 
87 #if DEAL_II_MAJOR_VERSION >= 7
88 #if DEAL_II_MINOR_VERSION >= 2
89 // MappingQ1<dealdim> mapping;
90 // hp::MappingCollection<dealdim> map_col(mapping);
91 
92  DoFTools::map_dofs_to_support_points(mapping, dh, support_points);
93 // DoFTools::map_dofs_to_support_points(map_col, dh, support_points);
94 #else
95  throw DOpEException(
96  "Your deal.ii version is too old. We need DoFTools::map_dofs_to_support_points for hp::DoFhandler"
97  " (Implemented since 7.2, revision 24975)!",
98  "MapDoFsToSupportPoints");
99 #endif
100 #else
101  throw DOpEException(
102  "Your deal.ii version is too old. We need DoFTools::map_dofs_to_support_points for hp::DoFhandler"
103  " (Implemented since 7.2, revision 24975)!",
104  "MapDoFsToSupportPoints");
105 #endif
106  }
107  }
108 }
109 
110 #endif /* STH_INTERNALS_H_ */
Definition: mapping_wrapper.h:48
void MapDoFsToSupportPoints(const DOpEWrapper::Mapping< dealdim, dealii::hp::DoFHandler > &mapping, const DOpEWrapper::DoFHandler< dealdim, dealii::hp::DoFHandler > &dh, VECTOR &support_points)
Definition: sth_internals.h:81
Definition: dofhandler_wrapper.h:51
Definition: dopeexception.h:35