mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
STLpoint: declare operator point() for double-precision only
The base-class provides the point for single-precision.
This commit is contained in:
@ -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
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user