Netgen/NGSolve interface - Version 2

This commit is contained in:
Joachim Schoeberl 2009-07-19 17:33:25 +00:00
parent 7ac50aacf6
commit 54341e5c53
3 changed files with 25 additions and 1 deletions

View File

@ -60,6 +60,9 @@ DLL_HEADER int Ng_GetNElements ();
template <int DIM>
DLL_HEADER Ng_Element Ng_GetElement (int nr);
template <int DIM>
DLL_HEADER int Ng_GetElementIndex (int nr);
/// Curved Elements:
/// xi..... DIM_EL local coordinates

View File

@ -98,7 +98,6 @@ template <class S>
class InterpolationSpline
{
protected:
// typedef Vec<3, InterpolationPoint<S> > intpts;
// Array < InterpolationPoint<S>[3] > ip;
class intpts

View File

@ -154,6 +154,28 @@ template <> DLL_HEADER Ng_Element Ng_GetElement<3> (int nr)
}
template <>
DLL_HEADER int Ng_GetElementIndex<1> (int nr)
{
return (*mesh)[SegmentIndex(nr)].si;
}
template <>
DLL_HEADER int Ng_GetElementIndex<2> (int nr)
{
int ind = (*mesh)[SurfaceElementIndex(nr)].GetIndex();
return mesh->GetFaceDescriptor(ind).BCProperty();
}
template <>
DLL_HEADER int Ng_GetElementIndex<3> (int nr)
{
return (*mesh)[ElementIndex(nr)].GetIndex();
}
template <>
DLL_HEADER void Ng_MultiElementTransformation<3,3> (int elnr, int npts,