added missing template instantiation

This commit is contained in:
Joachim Schöberl 2016-07-11 18:39:10 +02:00
parent 423c4c6ac5
commit 5681d9c00a

View File

@ -541,6 +541,30 @@ namespace netgen
} }
} }
template <typename T>
void Element2d :: GetShapeNew (const Point<2,T> & p, TFlatVector<T> shape) const
{
switch (typ)
{
case TRIG:
{
shape(0) = p(0);
shape(1) = p(1);
shape(2) = 1-p(0)-p(1);
break;
}
case QUAD:
{
shape(0) = (1-p(0))*(1-p(1));
shape(1) = p(0) *(1-p(1));
shape(2) = p(0) * p(1) ;
shape(3) = (1-p(0))* p(1) ;
break;
}
}
}
@ -2028,6 +2052,9 @@ namespace netgen
} }
} }
template void Element2d :: GetShapeNew (const Point<2,double> & p, TFlatVector<double> shape) const;
template void Element2d :: GetShapeNew (const Point<2,SIMD<double>> & p, TFlatVector<SIMD<double>> shape) const;
template void Element2d::GetDShapeNew<double> (const Point<2> &, MatrixFixWidth<2> &) const; template void Element2d::GetDShapeNew<double> (const Point<2> &, MatrixFixWidth<2> &) const;
template void Element2d::GetDShapeNew<SIMD<double>> (const Point<2,SIMD<double>> &, MatrixFixWidth<2,SIMD<double>> &) const; template void Element2d::GetDShapeNew<SIMD<double>> (const Point<2,SIMD<double>> &, MatrixFixWidth<2,SIMD<double>> &) const;