diff --git a/libsrc/include/nginterface.h b/libsrc/include/nginterface.h index f7ca56a6..c7a85ed3 100644 --- a/libsrc/include/nginterface.h +++ b/libsrc/include/nginterface.h @@ -37,6 +37,7 @@ // implemented element types: enum NG_ELEMENT_TYPE { + NG_PNT = 0, NG_SEGM = 1, NG_SEGM3 = 2, NG_TRIG = 10, NG_QUAD=11, NG_TRIG6 = 12, NG_QUAD6 = 13, NG_TET = 20, NG_TET10 = 21, diff --git a/libsrc/interface/nginterface_v2.cpp b/libsrc/interface/nginterface_v2.cpp index f59d6113..f3a94fa3 100644 --- a/libsrc/interface/nginterface_v2.cpp +++ b/libsrc/interface/nginterface_v2.cpp @@ -30,6 +30,10 @@ namespace netgen { + template <> int DLL_HEADER Ng_GetNElements<0> () + { + return 0; + } template <> int DLL_HEADER Ng_GetNElements<1> () { @@ -48,6 +52,10 @@ namespace netgen + template <> DLL_HEADER Ng_Element Ng_GetElement<0> (int nr) + { + cout << "Netgen does not support 0-D elements" << endl; + } template <> DLL_HEADER Ng_Element Ng_GetElement<1> (int nr) {