From cb52bb3165dffe95b6b503a458bd40a4f156d3dc Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 5 Feb 2014 10:42:41 +0000 Subject: [PATCH] ENH: uniformFixedValue: bypass fixedValue mapping constructor to avoid warning message --- .../uniformFixedValue/uniformFixedValueFvPatchField.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.C index 1f07b1bb14..20fb99a0b3 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -66,10 +66,10 @@ uniformFixedValueFvPatchField::uniformFixedValueFvPatchField const fvPatchFieldMapper& mapper ) : - fixedValueFvPatchField(ptf, p, iF, mapper), + fixedValueFvPatchField(p, iF), // bypass mapper uniformValue_(ptf.uniformValue_().clone().ptr()) { - // For safety re-evaluate + // Evaluate since value not mapped const scalar t = this->db().time().timeOutputValue(); fvPatchField::operator==(uniformValue_->value(t)); }