src/dolfinx_access/minmax_p2.cc

changeset 3
c3a4f4bb87f7
parent 1
a4137aedcb3a
--- a/src/dolfinx_access/minmax_p2.cc	Thu Feb 26 09:32:12 2026 -0500
+++ b/src/dolfinx_access/minmax_p2.cc	Wed Apr 22 22:32:00 2026 -0500
@@ -12,7 +12,6 @@
 #include "pointsource_pde/src/dolfinx_access.rs.h"
 
 using namespace dolfinx::fem;
-namespace cell = basix::cell;
 using namespace basix::element;
 using namespace dolfinx_access;
 
@@ -45,17 +44,17 @@
         auto el = fp->element()->basix_element();
         // printf("%d %d %d %d\n", el.degree(), el.cell_type(), el.lagrange_variant(),
         // el.family());
-        if (el.degree() != 2 || el.cell_type() != cell::type::triangle ||
+        if (el.degree() != 2 || el.cell_type() != basix::cell::type::triangle ||
             /*el.lagrange_variant() != lagrange_variant::equispaced ||*/ el.family() !=
                 family::P) {
             throw "Only equispaced Lagrange second-order polynomial elements are supported";
         }
-        if (cell_num_entities(mesh::CellType::triangle, 0) != 3) {
+        if (cell_num_entities(dolfinx::mesh::CellType::triangle, 0) != 3) {
             throw "A triangle should have three vertices";
         }
 
         // Check that we are dealing with a scalar function
-        if (fp->value_shape().size() != 0) {
+        if (fp->element()->value_shape().size() != 0) {
             throw "Only scalar functions are supported, obviously.";
         }
 
@@ -67,7 +66,7 @@
         // Check that there are no other types of eleemnts
         auto entity_types = topo->entity_types(2);
         for (auto& t : entity_types) {
-            if (t != mesh::CellType::triangle) {
+            if (t != dolfinx::mesh::CellType::triangle) {
                 throw "Only triangular meshes are supported";
             }
         }

mercurial