diff --git a/libsrc/meshing/curvedelems.cpp b/libsrc/meshing/curvedelems.cpp index 71fb7d83..6523c056 100644 --- a/libsrc/meshing/curvedelems.cpp +++ b/libsrc/meshing/curvedelems.cpp @@ -1432,7 +1432,7 @@ namespace netgen template 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 * dxdxi, size_t sdxdxi); template void CurvedElements :: - CalcSegmentTransformation (double xi, SegmentIndex elnr, + CalcSegmentTransformation (const double & xi, SegmentIndex elnr, Point<3,double> * x, Vec<3,double> * dxdxi, bool * curved); diff --git a/libsrc/meshing/curvedelems.hpp b/libsrc/meshing/curvedelems.hpp index f1a732a0..f95756c5 100644 --- a/libsrc/meshing/curvedelems.hpp +++ b/libsrc/meshing/curvedelems.hpp @@ -161,7 +161,7 @@ public: private: template - 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,