From 331e47830ec21ae7a759db7a33028807300f54d4 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Sat, 27 Apr 2024 15:13:17 +0200 Subject: [PATCH] fix warning by throwing --- libsrc/meshing/python_mesh.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index 1f6e1ad1..f7bd1e22 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -1021,6 +1021,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m) case 3: return (*self.hpelements)[self[ElementIndex(elnr)].GetHpElnr()].coarse_elnr; } + throw Exception ("MacroElementNr not implemented for dim"); }, py::arg("elnr"), py::arg("dim")=nullopt, "number of macro element of element number elnr") .def("FaceDescriptor", static_cast (&Mesh::GetFaceDescriptor), py::return_value_policy::reference)