@@ -143,7 +143,7 @@ void doFail(std::string_view order, std::string_view function,
143
143
144
144
template <template <typename ...> typename Controller>
145
145
void doRun (Omega_h::Mesh &mesh,
146
- MeshField::OmegahMeshField<ExecutionSpace, Controller> &omf) {
146
+ MeshField::OmegahMeshField<ExecutionSpace, 2 , Controller> &omf) {
147
147
148
148
// setup field with values from the analytic function
149
149
static const size_t OnePtPerElem = 1 ;
@@ -166,14 +166,14 @@ void doRun(Omega_h::Mesh &mesh,
166
166
// clang-format on
167
167
168
168
auto coords = mesh.coords ();
169
- const auto MeshDim = 2 ;
170
169
for (auto testCase : cases) {
171
170
using ViewType = decltype (testCase.coords );
172
171
{
173
172
const auto ShapeOrder = 1 ;
174
- auto field = omf.template CreateLagrangeField <MeshField::Real, ShapeOrder,
175
- MeshDim>();
176
- auto func = LinearFunction ();
173
+
174
+ auto field =
175
+ omf.template CreateLagrangeField <MeshField::Real, ShapeOrder>();
176
+ LinearFunction func = LinearFunction ();
177
177
setVertices (mesh, func, field);
178
178
using FieldType = decltype (field);
179
179
auto result = omf.template triangleLocalPointEval <ViewType, FieldType>(
@@ -186,8 +186,8 @@ void doRun(Omega_h::Mesh &mesh,
186
186
187
187
{
188
188
const auto ShapeOrder = 2 ;
189
- auto field = omf. template CreateLagrangeField <MeshField::Real, ShapeOrder,
190
- MeshDim >();
189
+ auto field =
190
+ omf. template CreateLagrangeField <MeshField::Real, ShapeOrder >();
191
191
auto func = QuadraticFunction ();
192
192
setVertices (mesh, func, field);
193
193
setEdges (mesh, func, field);
@@ -202,8 +202,8 @@ void doRun(Omega_h::Mesh &mesh,
202
202
203
203
{
204
204
const auto ShapeOrder = 2 ;
205
- auto field = omf. template CreateLagrangeField <MeshField::Real, ShapeOrder,
206
- MeshDim >();
205
+ auto field =
206
+ omf. template CreateLagrangeField <MeshField::Real, ShapeOrder >();
207
207
auto func = LinearFunction ();
208
208
setVertices (mesh, func, field);
209
209
setEdges (mesh, func, field);
@@ -225,15 +225,15 @@ int main(int argc, char **argv) {
225
225
#ifdef MESHFIELDS_ENABLE_CABANA
226
226
{
227
227
auto mesh = createMeshTri18 (lib);
228
- MeshField::OmegahMeshField<ExecutionSpace, MeshField::CabanaController> omf (
229
- mesh);
228
+ MeshField::OmegahMeshField<ExecutionSpace, 2 , MeshField::CabanaController>
229
+ omf ( mesh);
230
230
doRun<MeshField::CabanaController>(mesh, omf);
231
231
}
232
232
#endif
233
233
{
234
234
auto mesh = createMeshTri18 (lib);
235
- MeshField::OmegahMeshField<ExecutionSpace, MeshField::KokkosController> omf (
236
- mesh);
235
+ MeshField::OmegahMeshField<ExecutionSpace, 2 , MeshField::KokkosController>
236
+ omf ( mesh);
237
237
doRun<MeshField::KokkosController>(mesh, omf);
238
238
}
239
239
Kokkos::finalize ();
0 commit comments