fix warning by throwing

This commit is contained in:
Joachim Schoeberl 2024-04-27 15:13:17 +02:00
parent 2982427d34
commit 331e47830e

View File

@ -1021,6 +1021,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
case 3: case 3:
return (*self.hpelements)[self[ElementIndex(elnr)].GetHpElnr()].coarse_elnr; 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") }, py::arg("elnr"), py::arg("dim")=nullopt, "number of macro element of element number elnr")
.def("FaceDescriptor", static_cast<FaceDescriptor&(Mesh::*)(int)> (&Mesh::GetFaceDescriptor), .def("FaceDescriptor", static_cast<FaceDescriptor&(Mesh::*)(int)> (&Mesh::GetFaceDescriptor),
py::return_value_policy::reference) py::return_value_policy::reference)