From 48762a8c583904ecee8090368f4c5081d00f2b67 Mon Sep 17 00:00:00 2001 From: Henry Weller <http://cfd.direct> Date: Sat, 12 Nov 2016 09:02:51 +0000 Subject: [PATCH] STLpoint: declare operator point() for double-precision only The base-class provides the point for single-precision. --- src/surfMesh/surfaceFormats/stl/STLpoint.H | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/surfMesh/surfaceFormats/stl/STLpoint.H b/src/surfMesh/surfaceFormats/stl/STLpoint.H index 157e832ba5a..eb0d9fccd2e 100644 --- a/src/surfMesh/surfaceFormats/stl/STLpoint.H +++ b/src/surfMesh/surfaceFormats/stl/STLpoint.H @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -80,11 +80,13 @@ public: // Member Operators - //- Conversion to point + #ifdef WM_DP + //- Conversion to double-precision point inline operator point() const { return point(x(), y(), z()); } + #endif }; -- GitLab