ddfem 1.0.8__py3-none-any.whl → 1.0.10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. ddfem/__init__.py +1 -1
  2. ddfem/__main__.py +21 -2
  3. ddfem/data/2.11.dev20250709/boundary.modules +1 -1
  4. ddfem/data/2.11.dev20250709/hierarchicalgrid_472c2c2d007bf5604887ab2f16b7eb13.cc +30 -0
  5. ddfem/data/2.11.dev20250709/integrands_00ee9b3b89e4e44212e5b7ad7948a24ev1_3_a524c1196983e65de1c06d7d6afdeb44.cc +587 -0
  6. ddfem/data/2.11.dev20250709/{integrands_5e1afa60a15644998389a84306246ea5v1_3_a524c1196983e65de1c06d7d6afdeb44.cc → integrands_2e6d4e3b5cff269867d26022ac7cee09v1_3_a524c1196983e65de1c06d7d6afdeb44.cc} +8 -8
  7. ddfem/data/2.11.dev20250709/{integrands_2e5e6f48655bd358419554a0857f697bv1_3_a524c1196983e65de1c06d7d6afdeb44.cc → integrands_59ef814e4fbd86ef9c0aeac61e84e9a7v1_3_a524c1196983e65de1c06d7d6afdeb44.cc} +8 -8
  8. ddfem/data/2.11.dev20250709/{integrands_563572f4cb20b041e8198ba7d5f88584v1_3_a524c1196983e65de1c06d7d6afdeb44.cc → integrands_96ea175da69be26acf1a8d94dc0b3c93v1_3_a524c1196983e65de1c06d7d6afdeb44.cc} +8 -8
  9. ddfem/data/2.11.dev20250709/{integrands_2339be3c67df1d67b18125c34ced69c2v1_3_a524c1196983e65de1c06d7d6afdeb44.cc → integrands_bf510277401791ad5e30831b49a8ed7cv1_3_a524c1196983e65de1c06d7d6afdeb44.cc} +25 -14
  10. ddfem/data/2.11.dev20250709/intro.modules +26 -23
  11. ddfem/data/2.11.dev20250709/localfunction_0cb4ca9e24e2891510640b0737aaab21_a524c1196983e65de1c06d7d6afdeb44.cc +170 -0
  12. ddfem/data/2.11.dev20250709/localfunction_0f7b2106478c5d2af781b1f377a180d2_a524c1196983e65de1c06d7d6afdeb44.cc +393 -0
  13. ddfem/data/2.11.dev20250709/localfunction_1460b632dc5919e94a2147108f4f34f4_19659fe2f2f74bcfb5d532f1a0d38be9.cc +468 -0
  14. ddfem/data/2.11.dev20250709/localfunction_161bbe6dde741c6e3f90c2919b8d17a4_19659fe2f2f74bcfb5d532f1a0d38be9.cc +171 -0
  15. ddfem/data/2.11.dev20250709/localfunction_268716e3e3ec528038367ee04d335ea1_19659fe2f2f74bcfb5d532f1a0d38be9.cc +289 -0
  16. ddfem/data/2.11.dev20250709/localfunction_29566243d89228735978e58471af60be_19659fe2f2f74bcfb5d532f1a0d38be9.cc +246 -0
  17. ddfem/data/2.11.dev20250709/localfunction_2a890b2a64788a92607670296c0d37ac_19659fe2f2f74bcfb5d532f1a0d38be9.cc +311 -0
  18. ddfem/data/2.11.dev20250709/localfunction_2a97db5a6a479d02138a836cb0890cf2_a524c1196983e65de1c06d7d6afdeb44.cc +173 -0
  19. ddfem/data/2.11.dev20250709/localfunction_2bbefabe87db948827d02bdb8d69a7d1_19659fe2f2f74bcfb5d532f1a0d38be9.cc +240 -0
  20. ddfem/data/2.11.dev20250709/localfunction_34a46b87fa5c0a5a4f0bc44949f2eda9_19659fe2f2f74bcfb5d532f1a0d38be9.cc +239 -0
  21. ddfem/data/2.11.dev20250709/localfunction_3c10414582133a0fa8e341c4544a97c7_19659fe2f2f74bcfb5d532f1a0d38be9.cc +220 -0
  22. ddfem/data/2.11.dev20250709/localfunction_3dfb73430ddb90a26b6f50f85e52e2a4_19659fe2f2f74bcfb5d532f1a0d38be9.cc +216 -0
  23. ddfem/data/2.11.dev20250709/localfunction_4484607e3f9bd9999dbd7bb9d595a7b2_a524c1196983e65de1c06d7d6afdeb44.cc +173 -0
  24. ddfem/data/2.11.dev20250709/localfunction_465e17370f4344b8997151adacf7aec6_19659fe2f2f74bcfb5d532f1a0d38be9.cc +403 -0
  25. ddfem/data/2.11.dev20250709/localfunction_57e9651c5364ef528f41cf138e126115_19659fe2f2f74bcfb5d532f1a0d38be9.cc +272 -0
  26. ddfem/data/2.11.dev20250709/localfunction_5c2a00bf7ec417475a0a378ed462beeb_19659fe2f2f74bcfb5d532f1a0d38be9.cc +350 -0
  27. ddfem/data/2.11.dev20250709/localfunction_5d71e054c405bc6584738437908af804_19659fe2f2f74bcfb5d532f1a0d38be9.cc +364 -0
  28. ddfem/data/2.11.dev20250709/localfunction_6343878b30d190cc70b631d882009dec_19659fe2f2f74bcfb5d532f1a0d38be9.cc +342 -0
  29. ddfem/data/2.11.dev20250709/localfunction_639a3f3873411f43337e687cb070368f_19659fe2f2f74bcfb5d532f1a0d38be9.cc +230 -0
  30. ddfem/data/2.11.dev20250709/localfunction_65bda5736a84d4aa0ef2d48ebcc90ed5_a524c1196983e65de1c06d7d6afdeb44.cc +173 -0
  31. ddfem/data/2.11.dev20250709/localfunction_6661b21a0e1340a9a9f7b32da595f130_19659fe2f2f74bcfb5d532f1a0d38be9.cc +468 -0
  32. ddfem/data/2.11.dev20250709/localfunction_75e876499fa3b7abc096aa08f88a1c2d_19659fe2f2f74bcfb5d532f1a0d38be9.cc +213 -0
  33. ddfem/data/2.11.dev20250709/localfunction_7d81d496538f240d504e5597484ee746_a524c1196983e65de1c06d7d6afdeb44.cc +462 -0
  34. ddfem/data/2.11.dev20250709/localfunction_8647b4efdf8a37595f73652bc1905df2_19659fe2f2f74bcfb5d532f1a0d38be9.cc +335 -0
  35. ddfem/data/2.11.dev20250709/localfunction_98b04b00bb93b8c6da99c91867e597ca_a524c1196983e65de1c06d7d6afdeb44.cc +639 -0
  36. ddfem/data/2.11.dev20250709/localfunction_98b32c4b5bc0d8083f3d2c394aa33429_19659fe2f2f74bcfb5d532f1a0d38be9.cc +340 -0
  37. ddfem/data/2.11.dev20250709/localfunction_9b741917efb5aa6a09e375272e4ae3aa_19659fe2f2f74bcfb5d532f1a0d38be9.cc +317 -0
  38. ddfem/data/2.11.dev20250709/localfunction_a369aff055312b472a92ee7e257534ff_19659fe2f2f74bcfb5d532f1a0d38be9.cc +392 -0
  39. ddfem/data/2.11.dev20250709/{localfunction_e4557ecff74fe5b37313674e67db2782_a524c1196983e65de1c06d7d6afdeb44.cc → localfunction_a46a988b5d8571e80fd401a36d7341b7_a524c1196983e65de1c06d7d6afdeb44.cc} +64 -29
  40. ddfem/data/2.11.dev20250709/localfunction_a6cc88a79948487ce95a6c3f22487b36_19659fe2f2f74bcfb5d532f1a0d38be9.cc +395 -0
  41. ddfem/data/2.11.dev20250709/localfunction_a9bb07439605d560b583608f20441342_a524c1196983e65de1c06d7d6afdeb44.cc +173 -0
  42. ddfem/data/2.11.dev20250709/localfunction_aa506761997f291dfd2e62b678f010b2_19659fe2f2f74bcfb5d532f1a0d38be9.cc +280 -0
  43. ddfem/data/2.11.dev20250709/localfunction_b5edf0c36f0fc96cc6f5f3677c6557a1_19659fe2f2f74bcfb5d532f1a0d38be9.cc +214 -0
  44. ddfem/data/2.11.dev20250709/{localfunction_c5ebc4ae4b5d3bad6be770eb08c50d08_19659fe2f2f74bcfb5d532f1a0d38be9.cc → localfunction_c3d0902cf8bb4b86b62a2293de2b74e9_19659fe2f2f74bcfb5d532f1a0d38be9.cc} +29 -29
  45. ddfem/data/2.11.dev20250709/localfunction_cf4a29dc25e72137baf2f8fb8b8d3c50_19659fe2f2f74bcfb5d532f1a0d38be9.cc +267 -0
  46. ddfem/data/2.11.dev20250709/localfunction_d0f33c2dc1ae0e619d85a7621c8e83a6_a524c1196983e65de1c06d7d6afdeb44.cc +325 -0
  47. ddfem/data/2.11.dev20250709/localfunction_d40efa41ac661ff77278d2ae4812b06d_19659fe2f2f74bcfb5d532f1a0d38be9.cc +377 -0
  48. ddfem/data/2.11.dev20250709/localfunction_e85b93fe9b8fcd40ee82782fc600b65b_a524c1196983e65de1c06d7d6afdeb44.cc +247 -0
  49. ddfem/data/2.11.dev20250709/localfunction_e9c8d4f4cedd30cab76a588b95bbccab_19659fe2f2f74bcfb5d532f1a0d38be9.cc +325 -0
  50. ddfem/data/2.11.dev20250709/localfunction_f0d3fe89de368f7ea295a1982a807bd8_19659fe2f2f74bcfb5d532f1a0d38be9.cc +281 -0
  51. ddfem/data/2.11.dev20250709/localfunction_fb15e1ad2c62e6660c67949fcf166d81_19659fe2f2f74bcfb5d532f1a0d38be9.cc +339 -0
  52. ddfem/data/2.11.dev20250709/localfunction_fb17410b0b5d479dce9ffc6f9d61ab37_19659fe2f2f74bcfb5d532f1a0d38be9.cc +317 -0
  53. ddfem/data/2.11.dev20250709/referenceelements_fe266b8abf61f4601198949ea6b0dfd3.cc +24 -0
  54. ddfem/data/2.11.dev20250709/yaspcoordinates_dim3_ctdouble.cc +55 -0
  55. ddfem/geometry/primitive_base.py +1 -1
  56. ddfem-1.0.10.dist-info/METADATA +101 -0
  57. {ddfem-1.0.8.dist-info → ddfem-1.0.10.dist-info}/RECORD +60 -18
  58. ddfem/data/2.11.dev20250709/integrands_f3ca00a2ef95c9a48de9ec1b807b1b30v1_3_a524c1196983e65de1c06d7d6afdeb44.cc +0 -453
  59. ddfem/data/2.11.dev20250709/localfunction_f4583c5cc10d24a8bdedf7510ce9da7b_a524c1196983e65de1c06d7d6afdeb44.cc +0 -299
  60. ddfem-1.0.8.dist-info/METADATA +0 -46
  61. {ddfem-1.0.8.dist-info → ddfem-1.0.10.dist-info}/WHEEL +0 -0
  62. {ddfem-1.0.8.dist-info → ddfem-1.0.10.dist-info}/licenses/LICENSE +0 -0
  63. {ddfem-1.0.8.dist-info → ddfem-1.0.10.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,220 @@
1
+ #ifndef GUARD_3c10414582133a0fa8e341c4544a97c7
2
+ #define GUARD_3c10414582133a0fa8e341c4544a97c7
3
+
4
+ #define USING_DUNE_PYTHON 1
5
+ #include <config.h>
6
+ #include <dune/grid/io/file/dgfparser/dgfyasp.hh>
7
+ #include <dune/grid/yaspgrid.hh>
8
+ #include <dune/python/grid/hierarchical.hh>
9
+ #include <dune/fem/function/localfunction/bindable.hh>
10
+ #include <dune/fem/common/intersectionside.hh>
11
+ #include <dune/python/pybind11/pybind11.h>
12
+ #include <dune/python/pybind11/extensions.h>
13
+ #include <dune/fempy/py/grid/gridpart.hh>
14
+ #include <dune/common/exceptions.hh>
15
+ #include <dune/fempy/py/ufllocalfunction.hh>
16
+
17
+ namespace UFLLocalFunctions_3c10414582133a0fa8e341c4544a97c7
18
+ {
19
+
20
+ // UFLLocalFunction
21
+ // ----------------
22
+
23
+ template< class GridPart >
24
+ struct UFLLocalFunction
25
+ : public Dune::Fem::BindableGridFunctionWithSpace<GridPart,Dune::Dim<1>>
26
+ {
27
+ typedef GridPart GridPartType;
28
+ typedef typename GridPartType::GridViewType GridView;
29
+ typedef typename GridView::ctype ctype;
30
+ typedef Dune::Fem::BindableGridFunctionWithSpace<GridPart,Dune::Dim<1>> BaseType;
31
+ typedef Dune::Fem::GridFunctionSpace<GridPartType,Dune::Dim<1>> FunctionSpaceType;
32
+ typedef typename GridPartType::template Codim< 0 >::EntityType EntityType;
33
+ typedef typename GridPartType::IntersectionType IntersectionType;
34
+ typedef typename EntityType::Geometry Geometry;
35
+ typedef typename Geometry::GlobalCoordinate GlobalCoordinateType;
36
+ typedef Dune::Fem::IntersectionSide Side;
37
+ typedef std::tuple<> ConstantTupleType;
38
+ typedef std::tuple<> CoefficientTupleType;
39
+ static constexpr bool gridPartValid = true;
40
+ template< std::size_t i >
41
+ using CoefficientType = std::tuple_element_t< i, CoefficientTupleType >;
42
+ template< std::size_t i >
43
+ using ConstantType = typename std::tuple_element_t< i, ConstantTupleType >::element_type;
44
+ using BaseType::entity;
45
+ using BaseType::geometry;
46
+
47
+ UFLLocalFunction ( const GridPartType &gridPart, const std::string &name, int order, const Dune::Fem::ParameterReader &parameter = Dune::Fem::Parameter::container() )
48
+ : BaseType(gridPart,name,order)
49
+ {}
50
+
51
+ void bind ( const IntersectionType &intersection, Side side )
52
+ {
53
+ BaseType::bind(intersection, side);
54
+ }
55
+
56
+ void bind ( const EntityType &entity )
57
+ {
58
+ BaseType::bind(entity);
59
+ }
60
+
61
+ void unbind ()
62
+ {
63
+ BaseType::unbind();
64
+ }
65
+
66
+ template< class Point >
67
+ void evaluate ( const Point &x, typename FunctionSpaceType::RangeType &result ) const
68
+ {
69
+ using std::abs;
70
+ using std::max;
71
+ using std::sqrt;
72
+ GlobalCoordinateType tmp0 = geometry().global( Dune::Fem::coordinate( x ) );
73
+ const auto tmp1 = -0.3 + tmp0[ 1 ];
74
+ const auto tmp2 = std::abs( tmp1 );
75
+ const auto tmp3 = -0.3 + tmp2;
76
+ const auto tmp4 = -0.1 + tmp0[ 0 ];
77
+ const auto tmp5 = std::abs( tmp4 );
78
+ const auto tmp6 = -0.8 + tmp5;
79
+ const auto tmp7 = std::max( tmp6, tmp3 );
80
+ const auto tmp8 = std::max( tmp3, 0.0 );
81
+ const auto tmp9 = tmp8 * tmp8;
82
+ const auto tmp10 = std::max( tmp6, 0.0 );
83
+ const auto tmp11 = tmp10 * tmp10;
84
+ const auto tmp12 = tmp11 + tmp9;
85
+ const auto tmp13 = 1e-10 + tmp12;
86
+ const auto tmp14 = std::sqrt( tmp13 );
87
+ const auto tmp15 = -1 * (tmp7 > 0.0 ? tmp14 : tmp7);
88
+ result[ 0 ] = tmp15;
89
+ }
90
+
91
+ template< class Point >
92
+ void jacobian ( const Point &x, typename FunctionSpaceType::JacobianRangeType &result ) const
93
+ {
94
+ using std::abs;
95
+ using std::max;
96
+ using std::sqrt;
97
+ GlobalCoordinateType tmp0 = geometry().global( Dune::Fem::coordinate( x ) );
98
+ const auto tmp1 = -0.1 + tmp0[ 0 ];
99
+ const auto tmp2 = -0.3 + tmp0[ 1 ];
100
+ const auto tmp3 = std::abs( tmp2 );
101
+ const auto tmp4 = -0.3 + tmp3;
102
+ const auto tmp5 = std::abs( tmp1 );
103
+ const auto tmp6 = -0.8 + tmp5;
104
+ const auto tmp7 = (tmp6 > tmp4 ? 1 : 0.0) * (tmp1 == 0.0 ? 0.0 : (tmp1 < 0.0 ? -1 : 1));
105
+ const auto tmp8 = std::max( tmp4, 0.0 );
106
+ const auto tmp9 = tmp8 * tmp8;
107
+ const auto tmp10 = std::max( tmp6, 0.0 );
108
+ const auto tmp11 = tmp10 * tmp10;
109
+ const auto tmp12 = tmp11 + tmp9;
110
+ const auto tmp13 = 1e-10 + tmp12;
111
+ const auto tmp14 = std::sqrt( tmp13 );
112
+ const auto tmp15 = 2 * tmp14;
113
+ const auto tmp16 = (tmp6 > 0.0 ? 1 : 0.0) * (tmp1 == 0.0 ? 0.0 : (tmp1 < 0.0 ? -1 : 1));
114
+ const auto tmp17 = tmp16 * tmp10;
115
+ const auto tmp18 = tmp17 + tmp17;
116
+ const auto tmp19 = tmp18 / tmp15;
117
+ const auto tmp20 = std::max( tmp6, tmp4 );
118
+ const auto tmp21 = -1 * (tmp20 > 0.0 ? tmp19 : tmp7);
119
+ const auto tmp22 = -1 * (tmp6 > tmp4 ? 1 : 0.0);
120
+ const auto tmp23 = 1.0 + tmp22;
121
+ const auto tmp24 = tmp23 * (tmp2 == 0.0 ? 0.0 : (tmp2 < 0.0 ? -1 : 1));
122
+ const auto tmp25 = (tmp4 > 0.0 ? 1 : 0.0) * (tmp2 == 0.0 ? 0.0 : (tmp2 < 0.0 ? -1 : 1));
123
+ const auto tmp26 = tmp25 * tmp8;
124
+ const auto tmp27 = tmp26 + tmp26;
125
+ const auto tmp28 = tmp27 / tmp15;
126
+ const auto tmp29 = -1 * (tmp20 > 0.0 ? tmp28 : tmp24);
127
+ (result[ 0 ])[ 0 ] = tmp21;
128
+ (result[ 0 ])[ 1 ] = tmp29;
129
+ }
130
+
131
+ template< class Point >
132
+ void hessian ( const Point &x, typename FunctionSpaceType::HessianRangeType &result ) const
133
+ {
134
+ using std::abs;
135
+ using std::max;
136
+ using std::sqrt;
137
+ GlobalCoordinateType tmp0 = geometry().global( Dune::Fem::coordinate( x ) );
138
+ const auto tmp1 = -0.3 + tmp0[ 1 ];
139
+ const auto tmp2 = std::abs( tmp1 );
140
+ const auto tmp3 = -0.3 + tmp2;
141
+ const auto tmp4 = std::max( tmp3, 0.0 );
142
+ const auto tmp5 = tmp4 * tmp4;
143
+ const auto tmp6 = -0.1 + tmp0[ 0 ];
144
+ const auto tmp7 = std::abs( tmp6 );
145
+ const auto tmp8 = -0.8 + tmp7;
146
+ const auto tmp9 = std::max( tmp8, 0.0 );
147
+ const auto tmp10 = tmp9 * tmp9;
148
+ const auto tmp11 = tmp10 + tmp5;
149
+ const auto tmp12 = 1e-10 + tmp11;
150
+ const auto tmp13 = std::sqrt( tmp12 );
151
+ const auto tmp14 = 2 * tmp13;
152
+ const auto tmp15 = (tmp8 > 0.0 ? 1 : 0.0) * (tmp6 == 0.0 ? 0.0 : (tmp6 < 0.0 ? -1 : 1));
153
+ const auto tmp16 = tmp15 * tmp9;
154
+ const auto tmp17 = tmp16 + tmp16;
155
+ const auto tmp18 = tmp17 / tmp14;
156
+ const auto tmp19 = 2 * tmp18;
157
+ const auto tmp20 = tmp19 * tmp18;
158
+ const auto tmp21 = -1 * tmp20;
159
+ const auto tmp22 = tmp15 * tmp15;
160
+ const auto tmp23 = tmp22 + tmp22;
161
+ const auto tmp24 = tmp23 + tmp21;
162
+ const auto tmp25 = tmp24 / tmp14;
163
+ const auto tmp26 = std::max( tmp8, tmp3 );
164
+ const auto tmp27 = -1 * (tmp26 > 0.0 ? tmp25 : 0.0);
165
+ const auto tmp28 = (tmp3 > 0.0 ? 1 : 0.0) * (tmp1 == 0.0 ? 0.0 : (tmp1 < 0.0 ? -1 : 1));
166
+ const auto tmp29 = tmp28 * tmp4;
167
+ const auto tmp30 = tmp29 + tmp29;
168
+ const auto tmp31 = tmp30 / tmp14;
169
+ const auto tmp32 = 2 * tmp31;
170
+ const auto tmp33 = tmp32 * tmp18;
171
+ const auto tmp34 = -1 * tmp33;
172
+ const auto tmp35 = tmp34 / tmp14;
173
+ const auto tmp36 = -1 * (tmp26 > 0.0 ? tmp35 : 0.0);
174
+ const auto tmp37 = tmp19 * tmp31;
175
+ const auto tmp38 = -1 * tmp37;
176
+ const auto tmp39 = tmp38 / tmp14;
177
+ const auto tmp40 = -1 * (tmp26 > 0.0 ? tmp39 : 0.0);
178
+ const auto tmp41 = tmp32 * tmp31;
179
+ const auto tmp42 = -1 * tmp41;
180
+ const auto tmp43 = tmp28 * tmp28;
181
+ const auto tmp44 = tmp43 + tmp43;
182
+ const auto tmp45 = tmp44 + tmp42;
183
+ const auto tmp46 = tmp45 / tmp14;
184
+ const auto tmp47 = -1 * (tmp26 > 0.0 ? tmp46 : 0.0);
185
+ ((result[ 0 ])[ 0 ])[ 0 ] = tmp27;
186
+ ((result[ 0 ])[ 0 ])[ 1 ] = tmp36;
187
+ ((result[ 0 ])[ 1 ])[ 0 ] = tmp40;
188
+ ((result[ 0 ])[ 1 ])[ 1 ] = tmp47;
189
+ }
190
+
191
+ template< std::size_t i >
192
+ const ConstantType< i > &constant () const
193
+ {
194
+ return *std::get< i >( constants_ );
195
+ }
196
+
197
+ template< std::size_t i >
198
+ ConstantType< i > &constant ()
199
+ {
200
+ return *std::get< i >( constants_ );
201
+ }
202
+ ConstantTupleType constants_;
203
+ std::tuple< > coefficients_;
204
+ };
205
+
206
+ } // namespace UFLLocalFunctions_3c10414582133a0fa8e341c4544a97c7
207
+
208
+ PYBIND11_MODULE( localfunction_3c10414582133a0fa8e341c4544a97c7_19659fe2f2f74bcfb5d532f1a0d38be9, module )
209
+ {
210
+ typedef UFLLocalFunctions_3c10414582133a0fa8e341c4544a97c7::UFLLocalFunction< typename Dune::FemPy::GridPart< Dune::YaspGrid< 2, Dune::EquidistantOffsetCoordinates< double, 2 > >::LeafGridView > > LocalFunctionType;
211
+ if constexpr( LocalFunctionType::gridPartValid )
212
+ {
213
+ auto cls = Dune::Python::insertClass<LocalFunctionType>(module,"UFLLocalFunction",Dune::Python::GenerateTypeName("UFLLocalFunctions_3c10414582133a0fa8e341c4544a97c7::UFLLocalFunction< typename Dune::FemPy::GridPart< Dune::YaspGrid< 2, Dune::EquidistantOffsetCoordinates< double, 2 > >::LeafGridView > >"), Dune::Python::IncludeFiles({"python/dune/generated/localfunction_3c10414582133a0fa8e341c4544a97c7_19659fe2f2f74bcfb5d532f1a0d38be9.cc"})).first;
214
+ Dune::FemPy::registerUFLLocalFunction( module, cls );
215
+ cls.def( pybind11::init( [] ( pybind11::object gridView, const std::string &name, int order ) {return new LocalFunctionType( Dune::FemPy::gridPart<Dune::YaspGrid< 2, Dune::EquidistantOffsetCoordinates< double, 2 > >::LeafGridView>(gridView),name,order); } ), pybind11::keep_alive< 1, 2 >() );
216
+ cls.def_property_readonly( "virtualized", [] ( LocalFunctionType& ) -> bool { return true;});
217
+ }
218
+ }
219
+
220
+ #endif
@@ -0,0 +1,216 @@
1
+ #ifndef GUARD_3dfb73430ddb90a26b6f50f85e52e2a4
2
+ #define GUARD_3dfb73430ddb90a26b6f50f85e52e2a4
3
+
4
+ #define USING_DUNE_PYTHON 1
5
+ #include <config.h>
6
+ #include <dune/grid/io/file/dgfparser/dgfyasp.hh>
7
+ #include <dune/grid/yaspgrid.hh>
8
+ #include <dune/python/grid/hierarchical.hh>
9
+ #include <dune/fem/function/localfunction/bindable.hh>
10
+ #include <dune/fem/common/intersectionside.hh>
11
+ #include <dune/python/pybind11/pybind11.h>
12
+ #include <dune/python/pybind11/extensions.h>
13
+ #include <dune/fempy/py/grid/gridpart.hh>
14
+ #include <dune/common/exceptions.hh>
15
+ #include <dune/fempy/py/ufllocalfunction.hh>
16
+
17
+ namespace UFLLocalFunctions_3dfb73430ddb90a26b6f50f85e52e2a4
18
+ {
19
+
20
+ // UFLLocalFunction
21
+ // ----------------
22
+
23
+ template< class GridPart >
24
+ struct UFLLocalFunction
25
+ : public Dune::Fem::BindableGridFunctionWithSpace<GridPart,Dune::Dim<1>>
26
+ {
27
+ typedef GridPart GridPartType;
28
+ typedef typename GridPartType::GridViewType GridView;
29
+ typedef typename GridView::ctype ctype;
30
+ typedef Dune::Fem::BindableGridFunctionWithSpace<GridPart,Dune::Dim<1>> BaseType;
31
+ typedef Dune::Fem::GridFunctionSpace<GridPartType,Dune::Dim<1>> FunctionSpaceType;
32
+ typedef typename GridPartType::template Codim< 0 >::EntityType EntityType;
33
+ typedef typename GridPartType::IntersectionType IntersectionType;
34
+ typedef typename EntityType::Geometry Geometry;
35
+ typedef typename Geometry::GlobalCoordinate GlobalCoordinateType;
36
+ typedef Dune::Fem::IntersectionSide Side;
37
+ typedef std::tuple<> ConstantTupleType;
38
+ typedef std::tuple<> CoefficientTupleType;
39
+ static constexpr bool gridPartValid = true;
40
+ template< std::size_t i >
41
+ using CoefficientType = std::tuple_element_t< i, CoefficientTupleType >;
42
+ template< std::size_t i >
43
+ using ConstantType = typename std::tuple_element_t< i, ConstantTupleType >::element_type;
44
+ using BaseType::entity;
45
+ using BaseType::geometry;
46
+
47
+ UFLLocalFunction ( const GridPartType &gridPart, const std::string &name, int order, const Dune::Fem::ParameterReader &parameter = Dune::Fem::Parameter::container() )
48
+ : BaseType(gridPart,name,order)
49
+ {}
50
+
51
+ void bind ( const IntersectionType &intersection, Side side )
52
+ {
53
+ BaseType::bind(intersection, side);
54
+ }
55
+
56
+ void bind ( const EntityType &entity )
57
+ {
58
+ BaseType::bind(entity);
59
+ }
60
+
61
+ void unbind ()
62
+ {
63
+ BaseType::unbind();
64
+ }
65
+
66
+ template< class Point >
67
+ void evaluate ( const Point &x, typename FunctionSpaceType::RangeType &result ) const
68
+ {
69
+ using std::abs;
70
+ using std::max;
71
+ using std::sqrt;
72
+ GlobalCoordinateType tmp0 = geometry().global( Dune::Fem::coordinate( x ) );
73
+ const auto tmp1 = 0.4 + tmp0[ 1 ];
74
+ const auto tmp2 = -0.3 + tmp1;
75
+ const auto tmp3 = std::abs( tmp2 );
76
+ const auto tmp4 = -0.3 + tmp3;
77
+ const auto tmp5 = -0.1 + tmp0[ 0 ];
78
+ const auto tmp6 = std::abs( tmp5 );
79
+ const auto tmp7 = -0.8 + tmp6;
80
+ const auto tmp8 = std::max( tmp7, tmp4 );
81
+ const auto tmp9 = std::max( tmp4, 0.0 );
82
+ const auto tmp10 = tmp9 * tmp9;
83
+ const auto tmp11 = std::max( tmp7, 0.0 );
84
+ const auto tmp12 = tmp11 * tmp11;
85
+ const auto tmp13 = tmp12 + tmp10;
86
+ const auto tmp14 = 1e-10 + tmp13;
87
+ const auto tmp15 = std::sqrt( tmp14 );
88
+ result[ 0 ] = (tmp8 > 0.0 ? tmp15 : tmp8);
89
+ }
90
+
91
+ template< class Point >
92
+ void jacobian ( const Point &x, typename FunctionSpaceType::JacobianRangeType &result ) const
93
+ {
94
+ using std::abs;
95
+ using std::max;
96
+ using std::sqrt;
97
+ GlobalCoordinateType tmp0 = geometry().global( Dune::Fem::coordinate( x ) );
98
+ const auto tmp1 = -0.1 + tmp0[ 0 ];
99
+ const auto tmp2 = 0.4 + tmp0[ 1 ];
100
+ const auto tmp3 = -0.3 + tmp2;
101
+ const auto tmp4 = std::abs( tmp3 );
102
+ const auto tmp5 = -0.3 + tmp4;
103
+ const auto tmp6 = std::abs( tmp1 );
104
+ const auto tmp7 = -0.8 + tmp6;
105
+ const auto tmp8 = (tmp7 > tmp5 ? 1 : 0.0) * (tmp1 == 0.0 ? 0.0 : (tmp1 < 0.0 ? -1 : 1));
106
+ const auto tmp9 = std::max( tmp5, 0.0 );
107
+ const auto tmp10 = tmp9 * tmp9;
108
+ const auto tmp11 = std::max( tmp7, 0.0 );
109
+ const auto tmp12 = tmp11 * tmp11;
110
+ const auto tmp13 = tmp12 + tmp10;
111
+ const auto tmp14 = 1e-10 + tmp13;
112
+ const auto tmp15 = std::sqrt( tmp14 );
113
+ const auto tmp16 = 2 * tmp15;
114
+ const auto tmp17 = (tmp7 > 0.0 ? 1 : 0.0) * (tmp1 == 0.0 ? 0.0 : (tmp1 < 0.0 ? -1 : 1));
115
+ const auto tmp18 = tmp17 * tmp11;
116
+ const auto tmp19 = tmp18 + tmp18;
117
+ const auto tmp20 = tmp19 / tmp16;
118
+ const auto tmp21 = std::max( tmp7, tmp5 );
119
+ const auto tmp22 = -1 * (tmp7 > tmp5 ? 1 : 0.0);
120
+ const auto tmp23 = 1.0 + tmp22;
121
+ const auto tmp24 = tmp23 * (tmp3 == 0.0 ? 0.0 : (tmp3 < 0.0 ? -1 : 1));
122
+ const auto tmp25 = (tmp5 > 0.0 ? 1 : 0.0) * (tmp3 == 0.0 ? 0.0 : (tmp3 < 0.0 ? -1 : 1));
123
+ const auto tmp26 = tmp25 * tmp9;
124
+ const auto tmp27 = tmp26 + tmp26;
125
+ const auto tmp28 = tmp27 / tmp16;
126
+ (result[ 0 ])[ 0 ] = (tmp21 > 0.0 ? tmp20 : tmp8);
127
+ (result[ 0 ])[ 1 ] = (tmp21 > 0.0 ? tmp28 : tmp24);
128
+ }
129
+
130
+ template< class Point >
131
+ void hessian ( const Point &x, typename FunctionSpaceType::HessianRangeType &result ) const
132
+ {
133
+ using std::abs;
134
+ using std::max;
135
+ using std::sqrt;
136
+ GlobalCoordinateType tmp0 = geometry().global( Dune::Fem::coordinate( x ) );
137
+ const auto tmp1 = 0.4 + tmp0[ 1 ];
138
+ const auto tmp2 = -0.3 + tmp1;
139
+ const auto tmp3 = std::abs( tmp2 );
140
+ const auto tmp4 = -0.3 + tmp3;
141
+ const auto tmp5 = std::max( tmp4, 0.0 );
142
+ const auto tmp6 = tmp5 * tmp5;
143
+ const auto tmp7 = -0.1 + tmp0[ 0 ];
144
+ const auto tmp8 = std::abs( tmp7 );
145
+ const auto tmp9 = -0.8 + tmp8;
146
+ const auto tmp10 = std::max( tmp9, 0.0 );
147
+ const auto tmp11 = tmp10 * tmp10;
148
+ const auto tmp12 = tmp11 + tmp6;
149
+ const auto tmp13 = 1e-10 + tmp12;
150
+ const auto tmp14 = std::sqrt( tmp13 );
151
+ const auto tmp15 = 2 * tmp14;
152
+ const auto tmp16 = (tmp9 > 0.0 ? 1 : 0.0) * (tmp7 == 0.0 ? 0.0 : (tmp7 < 0.0 ? -1 : 1));
153
+ const auto tmp17 = tmp16 * tmp10;
154
+ const auto tmp18 = tmp17 + tmp17;
155
+ const auto tmp19 = tmp18 / tmp15;
156
+ const auto tmp20 = 2 * tmp19;
157
+ const auto tmp21 = tmp20 * tmp19;
158
+ const auto tmp22 = -1 * tmp21;
159
+ const auto tmp23 = tmp16 * tmp16;
160
+ const auto tmp24 = tmp23 + tmp23;
161
+ const auto tmp25 = tmp24 + tmp22;
162
+ const auto tmp26 = tmp25 / tmp15;
163
+ const auto tmp27 = std::max( tmp9, tmp4 );
164
+ const auto tmp28 = (tmp4 > 0.0 ? 1 : 0.0) * (tmp2 == 0.0 ? 0.0 : (tmp2 < 0.0 ? -1 : 1));
165
+ const auto tmp29 = tmp28 * tmp5;
166
+ const auto tmp30 = tmp29 + tmp29;
167
+ const auto tmp31 = tmp30 / tmp15;
168
+ const auto tmp32 = 2 * tmp31;
169
+ const auto tmp33 = tmp32 * tmp19;
170
+ const auto tmp34 = -1 * tmp33;
171
+ const auto tmp35 = tmp34 / tmp15;
172
+ const auto tmp36 = tmp20 * tmp31;
173
+ const auto tmp37 = -1 * tmp36;
174
+ const auto tmp38 = tmp37 / tmp15;
175
+ const auto tmp39 = tmp32 * tmp31;
176
+ const auto tmp40 = -1 * tmp39;
177
+ const auto tmp41 = tmp28 * tmp28;
178
+ const auto tmp42 = tmp41 + tmp41;
179
+ const auto tmp43 = tmp42 + tmp40;
180
+ const auto tmp44 = tmp43 / tmp15;
181
+ ((result[ 0 ])[ 0 ])[ 0 ] = (tmp27 > 0.0 ? tmp26 : 0.0);
182
+ ((result[ 0 ])[ 0 ])[ 1 ] = (tmp27 > 0.0 ? tmp35 : 0.0);
183
+ ((result[ 0 ])[ 1 ])[ 0 ] = (tmp27 > 0.0 ? tmp38 : 0.0);
184
+ ((result[ 0 ])[ 1 ])[ 1 ] = (tmp27 > 0.0 ? tmp44 : 0.0);
185
+ }
186
+
187
+ template< std::size_t i >
188
+ const ConstantType< i > &constant () const
189
+ {
190
+ return *std::get< i >( constants_ );
191
+ }
192
+
193
+ template< std::size_t i >
194
+ ConstantType< i > &constant ()
195
+ {
196
+ return *std::get< i >( constants_ );
197
+ }
198
+ ConstantTupleType constants_;
199
+ std::tuple< > coefficients_;
200
+ };
201
+
202
+ } // namespace UFLLocalFunctions_3dfb73430ddb90a26b6f50f85e52e2a4
203
+
204
+ PYBIND11_MODULE( localfunction_3dfb73430ddb90a26b6f50f85e52e2a4_19659fe2f2f74bcfb5d532f1a0d38be9, module )
205
+ {
206
+ typedef UFLLocalFunctions_3dfb73430ddb90a26b6f50f85e52e2a4::UFLLocalFunction< typename Dune::FemPy::GridPart< Dune::YaspGrid< 2, Dune::EquidistantOffsetCoordinates< double, 2 > >::LeafGridView > > LocalFunctionType;
207
+ if constexpr( LocalFunctionType::gridPartValid )
208
+ {
209
+ auto cls = Dune::Python::insertClass<LocalFunctionType>(module,"UFLLocalFunction",Dune::Python::GenerateTypeName("UFLLocalFunctions_3dfb73430ddb90a26b6f50f85e52e2a4::UFLLocalFunction< typename Dune::FemPy::GridPart< Dune::YaspGrid< 2, Dune::EquidistantOffsetCoordinates< double, 2 > >::LeafGridView > >"), Dune::Python::IncludeFiles({"python/dune/generated/localfunction_3dfb73430ddb90a26b6f50f85e52e2a4_19659fe2f2f74bcfb5d532f1a0d38be9.cc"})).first;
210
+ Dune::FemPy::registerUFLLocalFunction( module, cls );
211
+ cls.def( pybind11::init( [] ( pybind11::object gridView, const std::string &name, int order ) {return new LocalFunctionType( Dune::FemPy::gridPart<Dune::YaspGrid< 2, Dune::EquidistantOffsetCoordinates< double, 2 > >::LeafGridView>(gridView),name,order); } ), pybind11::keep_alive< 1, 2 >() );
212
+ cls.def_property_readonly( "virtualized", [] ( LocalFunctionType& ) -> bool { return true;});
213
+ }
214
+ }
215
+
216
+ #endif
@@ -0,0 +1,173 @@
1
+ #ifndef GUARD_4484607e3f9bd9999dbd7bb9d595a7b2
2
+ #define GUARD_4484607e3f9bd9999dbd7bb9d595a7b2
3
+
4
+ #define USING_DUNE_PYTHON 1
5
+ #include <config.h>
6
+ #include <dune/alugrid/dgf.hh>
7
+ #include <dune/alugrid/grid.hh>
8
+ #include <dune/fem/gridpart/adaptiveleafgridpart.hh>
9
+ #include <dune/fem/gridpart/filter/simple.hh>
10
+ #include <dune/fem/gridpart/filteredgridpart.hh>
11
+ #include <dune/fempy/py/gridview.hh>
12
+ #include <dune/python/grid/gridview.hh>
13
+ #include <dune/python/grid/hierarchical.hh>
14
+ #include <dune/fem/function/localfunction/bindable.hh>
15
+ #include <dune/fem/common/intersectionside.hh>
16
+ #include <dune/python/pybind11/pybind11.h>
17
+ #include <dune/python/pybind11/extensions.h>
18
+ #include <dune/fempy/py/grid/gridpart.hh>
19
+ #include <dune/common/exceptions.hh>
20
+ #include <dune/fempy/py/ufllocalfunction.hh>
21
+
22
+ namespace UFLLocalFunctions_4484607e3f9bd9999dbd7bb9d595a7b2
23
+ {
24
+
25
+ // UFLLocalFunction
26
+ // ----------------
27
+
28
+ template< class GridPart >
29
+ struct UFLLocalFunction
30
+ : public Dune::Fem::BindableGridFunctionWithSpace<GridPart,Dune::Dim<1>>
31
+ {
32
+ typedef GridPart GridPartType;
33
+ typedef typename GridPartType::GridViewType GridView;
34
+ typedef typename GridView::ctype ctype;
35
+ typedef Dune::Fem::BindableGridFunctionWithSpace<GridPart,Dune::Dim<1>> BaseType;
36
+ typedef Dune::Fem::GridFunctionSpace<GridPartType,Dune::Dim<1>> FunctionSpaceType;
37
+ typedef typename GridPartType::template Codim< 0 >::EntityType EntityType;
38
+ typedef typename GridPartType::IntersectionType IntersectionType;
39
+ typedef typename EntityType::Geometry Geometry;
40
+ typedef typename Geometry::GlobalCoordinate GlobalCoordinateType;
41
+ typedef Dune::Fem::IntersectionSide Side;
42
+ typedef std::tuple<> ConstantTupleType;
43
+ typedef std::tuple<> CoefficientTupleType;
44
+ static constexpr bool gridPartValid = true;
45
+ template< std::size_t i >
46
+ using CoefficientType = std::tuple_element_t< i, CoefficientTupleType >;
47
+ template< std::size_t i >
48
+ using ConstantType = typename std::tuple_element_t< i, ConstantTupleType >::element_type;
49
+ using BaseType::entity;
50
+ using BaseType::geometry;
51
+
52
+ UFLLocalFunction ( const GridPartType &gridPart, const std::string &name, int order, const Dune::Fem::ParameterReader &parameter = Dune::Fem::Parameter::container() )
53
+ : BaseType(gridPart,name,order)
54
+ {}
55
+
56
+ void bind ( const IntersectionType &intersection, Side side )
57
+ {
58
+ BaseType::bind(intersection, side);
59
+ }
60
+
61
+ void bind ( const EntityType &entity )
62
+ {
63
+ BaseType::bind(entity);
64
+ }
65
+
66
+ void unbind ()
67
+ {
68
+ BaseType::unbind();
69
+ }
70
+
71
+ template< class Point >
72
+ void evaluate ( const Point &x, typename FunctionSpaceType::RangeType &result ) const
73
+ {
74
+ using std::sqrt;
75
+ GlobalCoordinateType tmp0 = geometry().global( Dune::Fem::coordinate( x ) );
76
+ const auto tmp1 = -0.8 + tmp0[ 1 ];
77
+ const auto tmp2 = tmp1 * tmp1;
78
+ const auto tmp3 = tmp0[ 0 ] * tmp0[ 0 ];
79
+ const auto tmp4 = tmp3 + tmp2;
80
+ const auto tmp5 = 1e-10 + tmp4;
81
+ const auto tmp6 = std::sqrt( tmp5 );
82
+ const auto tmp7 = -0.5 + tmp6;
83
+ result[ 0 ] = tmp7;
84
+ }
85
+
86
+ template< class Point >
87
+ void jacobian ( const Point &x, typename FunctionSpaceType::JacobianRangeType &result ) const
88
+ {
89
+ using std::sqrt;
90
+ GlobalCoordinateType tmp0 = geometry().global( Dune::Fem::coordinate( x ) );
91
+ const auto tmp1 = -0.8 + tmp0[ 1 ];
92
+ const auto tmp2 = tmp1 * tmp1;
93
+ const auto tmp3 = tmp0[ 0 ] * tmp0[ 0 ];
94
+ const auto tmp4 = tmp3 + tmp2;
95
+ const auto tmp5 = 1e-10 + tmp4;
96
+ const auto tmp6 = std::sqrt( tmp5 );
97
+ const auto tmp7 = 2 * tmp6;
98
+ const auto tmp8 = tmp0[ 0 ] + tmp0[ 0 ];
99
+ const auto tmp9 = tmp8 / tmp7;
100
+ const auto tmp10 = tmp1 + tmp1;
101
+ const auto tmp11 = tmp10 / tmp7;
102
+ (result[ 0 ])[ 0 ] = tmp9;
103
+ (result[ 0 ])[ 1 ] = tmp11;
104
+ }
105
+
106
+ template< class Point >
107
+ void hessian ( const Point &x, typename FunctionSpaceType::HessianRangeType &result ) const
108
+ {
109
+ using std::sqrt;
110
+ GlobalCoordinateType tmp0 = geometry().global( Dune::Fem::coordinate( x ) );
111
+ const auto tmp1 = -0.8 + tmp0[ 1 ];
112
+ const auto tmp2 = tmp1 * tmp1;
113
+ const auto tmp3 = tmp0[ 0 ] * tmp0[ 0 ];
114
+ const auto tmp4 = tmp3 + tmp2;
115
+ const auto tmp5 = 1e-10 + tmp4;
116
+ const auto tmp6 = std::sqrt( tmp5 );
117
+ const auto tmp7 = 2 * tmp6;
118
+ const auto tmp8 = tmp0[ 0 ] + tmp0[ 0 ];
119
+ const auto tmp9 = tmp8 / tmp7;
120
+ const auto tmp10 = 2 * tmp9;
121
+ const auto tmp11 = tmp10 * tmp9;
122
+ const auto tmp12 = -1 * tmp11;
123
+ const auto tmp13 = 2 + tmp12;
124
+ const auto tmp14 = tmp13 / tmp7;
125
+ const auto tmp15 = tmp1 + tmp1;
126
+ const auto tmp16 = tmp15 / tmp7;
127
+ const auto tmp17 = 2 * tmp16;
128
+ const auto tmp18 = tmp17 * tmp9;
129
+ const auto tmp19 = -1 * tmp18;
130
+ const auto tmp20 = tmp19 / tmp7;
131
+ const auto tmp21 = tmp10 * tmp16;
132
+ const auto tmp22 = -1 * tmp21;
133
+ const auto tmp23 = tmp22 / tmp7;
134
+ const auto tmp24 = tmp17 * tmp16;
135
+ const auto tmp25 = -1 * tmp24;
136
+ const auto tmp26 = 2 + tmp25;
137
+ const auto tmp27 = tmp26 / tmp7;
138
+ ((result[ 0 ])[ 0 ])[ 0 ] = tmp14;
139
+ ((result[ 0 ])[ 0 ])[ 1 ] = tmp20;
140
+ ((result[ 0 ])[ 1 ])[ 0 ] = tmp23;
141
+ ((result[ 0 ])[ 1 ])[ 1 ] = tmp27;
142
+ }
143
+
144
+ template< std::size_t i >
145
+ const ConstantType< i > &constant () const
146
+ {
147
+ return *std::get< i >( constants_ );
148
+ }
149
+
150
+ template< std::size_t i >
151
+ ConstantType< i > &constant ()
152
+ {
153
+ return *std::get< i >( constants_ );
154
+ }
155
+ ConstantTupleType constants_;
156
+ std::tuple< > coefficients_;
157
+ };
158
+
159
+ } // namespace UFLLocalFunctions_4484607e3f9bd9999dbd7bb9d595a7b2
160
+
161
+ PYBIND11_MODULE( localfunction_4484607e3f9bd9999dbd7bb9d595a7b2_a524c1196983e65de1c06d7d6afdeb44, module )
162
+ {
163
+ typedef UFLLocalFunctions_4484607e3f9bd9999dbd7bb9d595a7b2::UFLLocalFunction< typename Dune::FemPy::GridPart< Dune::Fem::FilteredGridPart< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > >, Dune::Fem::SimpleFilter< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > > >, true > > > LocalFunctionType;
164
+ if constexpr( LocalFunctionType::gridPartValid )
165
+ {
166
+ auto cls = Dune::Python::insertClass<LocalFunctionType>(module,"UFLLocalFunction",Dune::Python::GenerateTypeName("UFLLocalFunctions_4484607e3f9bd9999dbd7bb9d595a7b2::UFLLocalFunction< typename Dune::FemPy::GridPart< Dune::Fem::FilteredGridPart< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > >, Dune::Fem::SimpleFilter< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > > >, true > > >"), Dune::Python::IncludeFiles({"python/dune/generated/localfunction_4484607e3f9bd9999dbd7bb9d595a7b2_a524c1196983e65de1c06d7d6afdeb44.cc"})).first;
167
+ Dune::FemPy::registerUFLLocalFunction( module, cls );
168
+ cls.def( pybind11::init( [] ( pybind11::object gridView, const std::string &name, int order ) {return new LocalFunctionType( Dune::FemPy::gridPart<Dune::Fem::FilteredGridPart< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > >, Dune::Fem::SimpleFilter< Dune::FemPy::GridPart< Dune::Fem::AdaptiveLeafGridPart< Dune::ALUGrid< 2, 2, Dune::simplex > > > >, true >>(gridView),name,order); } ), pybind11::keep_alive< 1, 2 >() );
169
+ cls.def_property_readonly( "virtualized", [] ( LocalFunctionType& ) -> bool { return true;});
170
+ }
171
+ }
172
+
173
+ #endif