From ac2005f15ec0061a91c043b0bfe106b880d28c81 Mon Sep 17 00:00:00 2001 From: Martin Beaudoin Date: Sun, 22 Jul 2018 03:55:59 +0000 Subject: [PATCH] Minor compilation corrections. g++ version 8.1 was sensitive to those and treating them as errors. --- .../engineTimeVaryingUniformFixedValueFvPatchField.H | 2 +- .../derived/advective/advectiveFvPatchField.H | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/engine/derivedFvPatchFields/engineTimeVaryingUniformFixedValue/engineTimeVaryingUniformFixedValueFvPatchField.H b/src/engine/derivedFvPatchFields/engineTimeVaryingUniformFixedValue/engineTimeVaryingUniformFixedValueFvPatchField.H index c395d7419..0be0e87dc 100644 --- a/src/engine/derivedFvPatchFields/engineTimeVaryingUniformFixedValue/engineTimeVaryingUniformFixedValueFvPatchField.H +++ b/src/engine/derivedFvPatchFields/engineTimeVaryingUniformFixedValue/engineTimeVaryingUniformFixedValueFvPatchField.H @@ -144,7 +144,7 @@ public: //- Return reference to the fluctuation scale to allow adjustment graph& timeData() { - return timeDataPtr_; + return timeDataPtr_(); } const engineTime& engineDB() const diff --git a/src/finiteVolume/fields/fvPatchFields/derived/advective/advectiveFvPatchField.H b/src/finiteVolume/fields/fvPatchFields/derived/advective/advectiveFvPatchField.H index ebb7bf6e5..9014392be 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/advective/advectiveFvPatchField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/advective/advectiveFvPatchField.H @@ -212,27 +212,27 @@ public: } //- Return inlet-outlet treatment switch - bool inletOutlet() const + Switch inletOutlet() const { return inletOutlet_; } //- Return reference to inlet-outlet treatment switch // to allow adjustment - bool& inletOutlet() + Switch& inletOutlet() { return inletOutlet_; } //- Return supercritical outlet treatment switch - bool correctSupercritical() const + Switch correctSupercritical() const { return correctSupercritical_; } //- Return reference to supercritical treatment switch // to allow adjustment - bool& correctSupercritical() + Switch& correctSupercritical() { return correctSupercritical_; }