From adcb7646f013e3383f1ec6d223bc06669d18ede1 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Fri, 23 Oct 2009 08:31:59 +0200 Subject: [PATCH] unitConversion - don't pull in the entire constant::mathematical namespace - also, minor doxygen fixup --- src/OpenFOAM/global/unitConversion/unitConversion.H | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/OpenFOAM/global/unitConversion/unitConversion.H b/src/OpenFOAM/global/unitConversion/unitConversion.H index 0ab93f1a50..73d80dd57e 100644 --- a/src/OpenFOAM/global/unitConversion/unitConversion.H +++ b/src/OpenFOAM/global/unitConversion/unitConversion.H @@ -22,7 +22,7 @@ License along with OpenFOAM; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -Namespace +InNamespace Foam Description @@ -35,8 +35,6 @@ Description #include "mathematicalConstants.H" -using namespace Foam::constant::mathematical; - // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam @@ -47,13 +45,13 @@ namespace Foam //- Conversion from degrees to radians inline scalar degToRad(const scalar& deg) { - return (deg*pi/180.0); + return (deg * constant::mathematical::pi/180.0); } //- Conversion from radians to degrees inline scalar radToDeg(const scalar& rad) { - return (rad*180.0/pi); + return (rad * 180.0/constant::mathematical::pi); } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //