circumventing compiler bug ?

This commit is contained in:
Joachim Schöberl 2020-01-13 21:19:09 +01:00
parent d53f28c89b
commit 3ece315bd0
2 changed files with 3 additions and 3 deletions

View File

@ -1432,7 +1432,7 @@ namespace netgen
template <typename T>
void CurvedElements ::
CalcSegmentTransformation (T xi, SegmentIndex elnr,
CalcSegmentTransformation (const T & xi, SegmentIndex elnr,
Point<3,T> * x, Vec<3,T> * dxdxi, bool * curved)
{
if (mesh.coarsemesh)
@ -4033,7 +4033,7 @@ namespace netgen
SIMD<double> * dxdxi, size_t sdxdxi);
template void CurvedElements ::
CalcSegmentTransformation<double> (double xi, SegmentIndex elnr,
CalcSegmentTransformation<double> (const double & xi, SegmentIndex elnr,
Point<3,double> * x, Vec<3,double> * dxdxi, bool * curved);

View File

@ -161,7 +161,7 @@ public:
private:
template <typename T>
void CalcSegmentTransformation (T xi, SegmentIndex segnr,
void CalcSegmentTransformation (const T & xi, SegmentIndex segnr,
Point<3,T> * x = NULL, Vec<3,T> * dxdxi = NULL, bool * curved = NULL);
void CalcSurfaceTransformation (Point<2> xi, SurfaceElementIndex elnr,