0-dim elements

This commit is contained in:
Joachim Schoeberl 2012-06-25 16:20:01 +00:00
parent a85154285f
commit 2496eabde5
2 changed files with 9 additions and 0 deletions

View File

@ -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,

View File

@ -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)
{