@@ -34,42 +34,37 @@ void makeHAR(SmartPointer<viennaps::Domain<NumericType, D>> domain,
3434 viennals::Domain<NumericType, D>::BoundaryType::INFINITE_BOUNDARY ;
3535
3636 {
37- auto substrate = SmartPointer<viennals::Domain<NumericType, D>>:: New (
38- bounds, boundaryCons, gridDelta);
37+ auto substrate =
38+ viennals::Domain<NumericType, D>:: New ( bounds, boundaryCons, gridDelta);
3939 NumericType normal[D] = {0 .};
4040 NumericType origin[D] = {0 .};
4141 normal[D - 1 ] = 1 .;
4242 origin[D - 1 ] = openingDepth + gapHeight;
4343 viennals::MakeGeometry<NumericType, D>(
44- substrate,
45- SmartPointer<viennals::Plane<NumericType, D>>::New (origin, normal))
44+ substrate, viennals::Plane<NumericType, D>::New (origin, normal))
4645 .apply ();
4746 domain->insertNextLevelSetAsMaterial (substrate, material);
4847 }
4948
5049 {
51- auto vertBox =
52- SmartPointer<viennals::Domain<NumericType, D>>::New (domain->getGrid ());
50+ auto vertBox = viennals::Domain<NumericType, D>::New (domain->getGrid ());
5351 NumericType minPoint[D] = {0 ., 0 .};
5452 NumericType maxPoint[D] = {openingWidth,
5553 gapHeight + openingDepth + gridDelta};
5654 viennals::MakeGeometry<NumericType, D>(
57- vertBox,
58- SmartPointer<viennals::Box<NumericType, D>>::New (minPoint, maxPoint))
55+ vertBox, viennals::Box<NumericType, D>::New (minPoint, maxPoint))
5956 .apply ();
6057
6158 domain->applyBooleanOperation (
6259 vertBox, viennals::BooleanOperationEnum::RELATIVE_COMPLEMENT );
6360 }
6461
6562 {
66- auto horiBox =
67- SmartPointer<viennals::Domain<NumericType, D>>::New (domain->getGrid ());
63+ auto horiBox = viennals::Domain<NumericType, D>::New (domain->getGrid ());
6864 NumericType minPoint[D] = {openingWidth - gridDelta, 0 .};
6965 NumericType maxPoint[D] = {openingWidth + gapLength, gapHeight};
7066 viennals::MakeGeometry<NumericType, D>(
71- horiBox,
72- SmartPointer<viennals::Box<NumericType, D>>::New (minPoint, maxPoint))
67+ horiBox, viennals::Box<NumericType, D>::New (minPoint, maxPoint))
7368 .apply ();
7469
7570 domain->applyBooleanOperation (
@@ -102,42 +97,37 @@ void makeT(SmartPointer<viennaps::Domain<NumericType, D>> domain,
10297 bounds[3 ] = openingDepth + gapHeight + gridDelta;
10398
10499 {
105- auto substrate = SmartPointer< viennals::Domain<NumericType, D> >::New (
100+ auto substrate = viennals::Domain<NumericType, D>::New (
106101 bounds, boundaryCons, gridDelta);
107102 NumericType normal[D] = {0 .};
108103 NumericType origin[D] = {0 .};
109104 normal[D - 1 ] = 1 .;
110105 origin[D - 1 ] = openingDepth + gapHeight;
111106 viennals::MakeGeometry<NumericType, D>(
112- substrate,
113- SmartPointer<viennals::Plane<NumericType, D>>::New (origin, normal))
107+ substrate, viennals::Plane<NumericType, D>::New (origin, normal))
114108 .apply ();
115109 domain->insertNextLevelSetAsMaterial (substrate, material);
116110 }
117111
118112 {
119- auto vertBox = SmartPointer<viennals::Domain<NumericType, D>>::New (
120- domain->getGrid ());
113+ auto vertBox = viennals::Domain<NumericType, D>::New (domain->getGrid ());
121114 NumericType minPoint[D] = {-gridDelta, 0 .};
122115 NumericType maxPoint[D] = {openingWidth / 2 .,
123116 gapHeight + openingDepth + gridDelta};
124117 viennals::MakeGeometry<NumericType, D>(
125- vertBox,
126- SmartPointer<viennals::Box<NumericType, D>>::New (minPoint, maxPoint))
118+ vertBox, viennals::Box<NumericType, D>::New (minPoint, maxPoint))
127119 .apply ();
128120
129121 domain->applyBooleanOperation (
130122 vertBox, viennals::BooleanOperationEnum::RELATIVE_COMPLEMENT );
131123 }
132124
133125 {
134- auto horiBox = SmartPointer<viennals::Domain<NumericType, D>>::New (
135- domain->getGrid ());
126+ auto horiBox = viennals::Domain<NumericType, D>::New (domain->getGrid ());
136127 NumericType minPoint[D] = {openingWidth / 2 . - gridDelta, 0 .};
137128 NumericType maxPoint[D] = {openingWidth / 2 . + gapLength, gapHeight};
138129 viennals::MakeGeometry<NumericType, D>(
139- horiBox,
140- SmartPointer<viennals::Box<NumericType, D>>::New (minPoint, maxPoint))
130+ horiBox, viennals::Box<NumericType, D>::New (minPoint, maxPoint))
141131 .apply ();
142132
143133 domain->applyBooleanOperation (
@@ -155,44 +145,39 @@ void makeT(SmartPointer<viennaps::Domain<NumericType, D>> domain,
155145 bounds[5 ] = openingDepth + gapHeight + gridDelta;
156146
157147 {
158- auto substrate = SmartPointer< viennals::Domain<NumericType, D> >::New (
148+ auto substrate = viennals::Domain<NumericType, D>::New (
159149 bounds, boundaryCons, gridDelta);
160150 NumericType normal[D] = {0 .};
161151 NumericType origin[D] = {0 .};
162152 normal[D - 1 ] = 1 .;
163153 origin[D - 1 ] = openingDepth + gapHeight;
164154 viennals::MakeGeometry<NumericType, D>(
165- substrate,
166- SmartPointer<viennals::Plane<NumericType, D>>::New (origin, normal))
155+ substrate, viennals::Plane<NumericType, D>::New (origin, normal))
167156 .apply ();
168157 domain->insertNextLevelSetAsMaterial (substrate, material);
169158 }
170159
171160 {
172- auto vertBox = SmartPointer<viennals::Domain<NumericType, D>>::New (
173- domain->getGrid ());
161+ auto vertBox = viennals::Domain<NumericType, D>::New (domain->getGrid ());
174162 NumericType minPoint[D] = {-gridDelta, -gapWidth / 2 ., 0 .};
175163 NumericType maxPoint[D] = {openingWidth / 2 ., gapWidth / 2 .,
176164 gapHeight + openingDepth + gridDelta};
177165 viennals::MakeGeometry<NumericType, D>(
178- vertBox,
179- SmartPointer<viennals::Box<NumericType, D>>::New (minPoint, maxPoint))
166+ vertBox, viennals::Box<NumericType, D>::New (minPoint, maxPoint))
180167 .apply ();
181168
182169 domain->applyBooleanOperation (
183170 vertBox, viennals::BooleanOperationEnum::RELATIVE_COMPLEMENT );
184171 }
185172
186173 {
187- auto horiBox = SmartPointer<viennals::Domain<NumericType, D>>::New (
188- domain->getGrid ());
174+ auto horiBox = viennals::Domain<NumericType, D>::New (domain->getGrid ());
189175 NumericType minPoint[D] = {openingWidth / 2 . - gridDelta, -gapWidth / 2 .,
190176 0 .};
191177 NumericType maxPoint[D] = {openingWidth / 2 . + gapLength, gapWidth / 2 .,
192178 gapHeight};
193179 viennals::MakeGeometry<NumericType, D>(
194- horiBox,
195- SmartPointer<viennals::Box<NumericType, D>>::New (minPoint, maxPoint))
180+ horiBox, viennals::Box<NumericType, D>::New (minPoint, maxPoint))
196181 .apply ();
197182
198183 domain->applyBooleanOperation (
0 commit comments