From 69025e5ef4e983a962db0bbe1446036ef51f12cf Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Fri, 17 Nov 2023 12:00:48 +0100 Subject: [PATCH] return some nonsense for undefined element-type --- libsrc/meshing/topology.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/meshing/topology.hpp b/libsrc/meshing/topology.hpp index 686638a4..e97b5f23 100644 --- a/libsrc/meshing/topology.hpp +++ b/libsrc/meshing/topology.hpp @@ -325,7 +325,7 @@ inline short int MeshTopology :: GetNPoints (ELEMENT_TYPE et) // default: // cerr << "Ng_ME_GetNVertices, illegal element type " << et << endl; } - return 0; + return -99; } @@ -370,7 +370,7 @@ inline short int MeshTopology :: GetNEdges (ELEMENT_TYPE et) // default: // cerr << "Ng_ME_GetNEdges, illegal element type " << et << endl; } - // return 0; + return -99; }