mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-11 21:50:34 +05:00
* Added DLL_HEADER exports to template specializations (Used in NgSolve)
This commit is contained in:
parent
2584903baa
commit
fb9b71b9cc
@ -24,9 +24,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
template <int DIM>
|
template <int DIM> DLL_HEADER int Ng_GetNElements ();
|
||||||
DLL_HEADER int Ng_GetNElements ();
|
|
||||||
|
|
||||||
template <int DIM>
|
template <int DIM> DLL_HEADER Ng_Element Ng_GetElement (int nr);
|
||||||
DLL_HEADER Ng_Element Ng_GetElement (int nr);
|
|
||||||
|
|
||||||
|
@ -71,17 +71,17 @@ using namespace netgen;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
template <> int Ng_GetNElements<1> ()
|
template <> int DLL_HEADER Ng_GetNElements<1> ()
|
||||||
{
|
{
|
||||||
return mesh->GetNSeg();
|
return mesh->GetNSeg();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <> int Ng_GetNElements<2> ()
|
template <> DLL_HEADER int Ng_GetNElements<2> ()
|
||||||
{
|
{
|
||||||
return mesh->GetNSE();
|
return mesh->GetNSE();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <> int Ng_GetNElements<3> ()
|
template <> DLL_HEADER int Ng_GetNElements<3> ()
|
||||||
{
|
{
|
||||||
return mesh->GetNE();
|
return mesh->GetNE();
|
||||||
}
|
}
|
||||||
@ -89,7 +89,7 @@ template <> int Ng_GetNElements<3> ()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
template <> Ng_Element Ng_GetElement<1> (int nr)
|
template <> DLL_HEADER Ng_Element Ng_GetElement<1> (int nr)
|
||||||
{
|
{
|
||||||
const Segment & el = mesh->LineSegment (SegmentIndex(nr));
|
const Segment & el = mesh->LineSegment (SegmentIndex(nr));
|
||||||
|
|
||||||
@ -101,8 +101,7 @@ template <> Ng_Element Ng_GetElement<1> (int nr)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <>
|
template <> DLL_HEADER Ng_Element Ng_GetElement<2> (int nr)
|
||||||
Ng_Element Ng_GetElement<2> (int nr)
|
|
||||||
{
|
{
|
||||||
const Element2d & el = mesh->SurfaceElement (SurfaceElementIndex (nr));
|
const Element2d & el = mesh->SurfaceElement (SurfaceElementIndex (nr));
|
||||||
|
|
||||||
@ -113,8 +112,7 @@ Ng_Element Ng_GetElement<2> (int nr)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <>
|
template <> DLL_HEADER Ng_Element Ng_GetElement<3> (int nr)
|
||||||
Ng_Element Ng_GetElement<3> (int nr)
|
|
||||||
{
|
{
|
||||||
const Element & el = mesh->VolumeElement (ElementIndex (nr));
|
const Element & el = mesh->VolumeElement (ElementIndex (nr));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user