From 1dead33a8908c1366d36f852f974433cf208260f Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Tue, 13 Oct 2015 22:28:26 +0100 Subject: [PATCH] uniformFixedValueFvPatchField: Remove the inconsistent optional "value" read in the construction from dictionary. It is important that the initial value is obtained from the table provided to avoid the user having to evaluate a consistent one or risk the code crashing from a very sudden change in the value. --- .../uniformFixedValue/uniformFixedValueFvPatchField.C | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.C index 11c8a88685..e587038890 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/uniformFixedValue/uniformFixedValueFvPatchField.C @@ -81,15 +81,8 @@ Foam::uniformFixedValueFvPatchField::uniformFixedValueFvPatchField fixedValueFvPatchField(p, iF), uniformValue_(DataEntry::New("uniformValue", dict)) { - if (dict.found("value")) - { - fvPatchField::operator==(Field("value", dict, p.size())); - } - else - { - const scalar t = this->db().time().timeOutputValue(); - fvPatchField::operator==(uniformValue_->value(t)); - } + const scalar t = this->db().time().timeOutputValue(); + fvPatchField::operator==(uniformValue_->value(t)); }