From fd3d3e28e6a557a70622a9546cbd72beaa3b3dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Sat, 4 Feb 2017 07:48:48 +0100 Subject: [PATCH] fix warning --- libsrc/meshing/meshtype.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libsrc/meshing/meshtype.cpp b/libsrc/meshing/meshtype.cpp index 8de4947b..b45171b1 100644 --- a/libsrc/meshing/meshtype.cpp +++ b/libsrc/meshing/meshtype.cpp @@ -1879,6 +1879,8 @@ namespace netgen shape(7) = (1-hp(0))*( hp(1))*( hp(2)); break; } + default: + throw NgException("Element :: GetShape not implemented for that element"); } } @@ -1966,6 +1968,8 @@ namespace netgen shape(7) = (1-p(0))*( p(1))*( p(2)); break; } + default: + throw NgException("Element :: GetNewShape not implemented for that element"); } }