From 61363e74c64bb4c9ee615ff4ca31832760490b7b Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Mon, 11 Jun 2018 14:21:58 +0100 Subject: [PATCH] Random: Declare member function specializations within the Foam namespace Required for gcc-4.8.5 --- src/OpenFOAM/primitives/Random/Random.H | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/OpenFOAM/primitives/Random/Random.H b/src/OpenFOAM/primitives/Random/Random.H index 64cbc5f71..029be46ac 100644 --- a/src/OpenFOAM/primitives/Random/Random.H +++ b/src/OpenFOAM/primitives/Random/Random.H @@ -143,6 +143,23 @@ public: scalar globalScalar01(); }; + +template<> +inline scalar Random::sample01(); + +template<> +inline label Random::sample01(); + +template<> +inline scalar Random::sampleAB(const scalar& a, const scalar& b); + +template<> +inline label Random::sampleAB(const label& a, const label& b); + +template<> +inline scalar Random::sampleNormal(); + + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // } // End namespace Foam