@@ -143,7 +143,7 @@ void doFail(std::string_view order, std::string_view function,
143143
144144template <template <typename ...> typename Controller>
145145void doRun (Omega_h::Mesh &mesh,
146- MeshField::OmegahMeshField<ExecutionSpace, Controller> &omf) {
146+ MeshField::OmegahMeshField<ExecutionSpace, 2 , Controller> &omf) {
147147
148148 // setup field with values from the analytic function
149149 static const size_t OnePtPerElem = 1 ;
@@ -166,14 +166,14 @@ void doRun(Omega_h::Mesh &mesh,
166166 // clang-format on
167167
168168 auto coords = mesh.coords ();
169- const auto MeshDim = 2 ;
170169 for (auto testCase : cases) {
171170 using ViewType = decltype (testCase.coords );
172171 {
173172 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 ();
177177 setVertices (mesh, func, field);
178178 using FieldType = decltype (field);
179179 auto result = omf.template triangleLocalPointEval <ViewType, FieldType>(
@@ -186,8 +186,8 @@ void doRun(Omega_h::Mesh &mesh,
186186
187187 {
188188 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 >();
191191 auto func = QuadraticFunction ();
192192 setVertices (mesh, func, field);
193193 setEdges (mesh, func, field);
@@ -202,8 +202,8 @@ void doRun(Omega_h::Mesh &mesh,
202202
203203 {
204204 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 >();
207207 auto func = LinearFunction ();
208208 setVertices (mesh, func, field);
209209 setEdges (mesh, func, field);
@@ -225,15 +225,15 @@ int main(int argc, char **argv) {
225225#ifdef MESHFIELDS_ENABLE_CABANA
226226 {
227227 auto mesh = createMeshTri18 (lib);
228- MeshField::OmegahMeshField<ExecutionSpace, MeshField::CabanaController> omf (
229- mesh);
228+ MeshField::OmegahMeshField<ExecutionSpace, 2 , MeshField::CabanaController>
229+ omf ( mesh);
230230 doRun<MeshField::CabanaController>(mesh, omf);
231231 }
232232#endif
233233 {
234234 auto mesh = createMeshTri18 (lib);
235- MeshField::OmegahMeshField<ExecutionSpace, MeshField::KokkosController> omf (
236- mesh);
235+ MeshField::OmegahMeshField<ExecutionSpace, 2 , MeshField::KokkosController>
236+ omf ( mesh);
237237 doRun<MeshField::KokkosController>(mesh, omf);
238238 }
239239 Kokkos::finalize ();
0 commit comments