From 27dc56ed0d3d7aa6f12903c5103aade6d8d64855 Mon Sep 17 00:00:00 2001 From: graham Date: Wed, 22 Sep 2010 12:27:42 +0100 Subject: [PATCH] BUG: fixedValue pdf returning +-VGREAT for min/maxValue() -should be value_ surely? --- src/thermophysicalModels/pdfs/fixedValue/fixedValue.C | 4 ++-- src/thermophysicalModels/pdfs/pdf/pdf.H | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/thermophysicalModels/pdfs/fixedValue/fixedValue.C b/src/thermophysicalModels/pdfs/fixedValue/fixedValue.C index 98634af06f..b8afd67303 100644 --- a/src/thermophysicalModels/pdfs/fixedValue/fixedValue.C +++ b/src/thermophysicalModels/pdfs/fixedValue/fixedValue.C @@ -62,13 +62,13 @@ Foam::scalar Foam::pdfs::fixedValue::fixedValue::sample() const Foam::scalar Foam::pdfs::fixedValue::fixedValue::minValue() const { - return -VGREAT; + return value_; } Foam::scalar Foam::pdfs::fixedValue::fixedValue::maxValue() const { - return VGREAT; + return value_; } diff --git a/src/thermophysicalModels/pdfs/pdf/pdf.H b/src/thermophysicalModels/pdfs/pdf/pdf.H index b0c5ea671d..d6dbf8fb90 100644 --- a/src/thermophysicalModels/pdfs/pdf/pdf.H +++ b/src/thermophysicalModels/pdfs/pdf/pdf.H @@ -77,7 +77,7 @@ protected: //- Coefficients dictionary const dictionary pdfDict_; - //- Reference to the randmo number generator + //- Reference to the random number generator Random& rndGen_;