mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 13:20:34 +05:00
0-dim elements
This commit is contained in:
parent
a85154285f
commit
2496eabde5
@ -37,6 +37,7 @@
|
|||||||
|
|
||||||
// implemented element types:
|
// implemented element types:
|
||||||
enum NG_ELEMENT_TYPE {
|
enum NG_ELEMENT_TYPE {
|
||||||
|
NG_PNT = 0,
|
||||||
NG_SEGM = 1, NG_SEGM3 = 2,
|
NG_SEGM = 1, NG_SEGM3 = 2,
|
||||||
NG_TRIG = 10, NG_QUAD=11, NG_TRIG6 = 12, NG_QUAD6 = 13,
|
NG_TRIG = 10, NG_QUAD=11, NG_TRIG6 = 12, NG_QUAD6 = 13,
|
||||||
NG_TET = 20, NG_TET10 = 21,
|
NG_TET = 20, NG_TET10 = 21,
|
||||||
|
@ -30,6 +30,10 @@ namespace netgen
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
template <> int DLL_HEADER Ng_GetNElements<0> ()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
template <> int DLL_HEADER Ng_GetNElements<1> ()
|
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)
|
template <> DLL_HEADER Ng_Element Ng_GetElement<1> (int nr)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user