ENH: uniformFixedValue: bypass fixedValue mapping constructor to avoid warning message

This commit is contained in:
mattijs
2014-02-05 10:42:41 +00:00
parent edb178cdca
commit cb52bb3165

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -66,10 +66,10 @@ uniformFixedValueFvPatchField<Type>::uniformFixedValueFvPatchField
const fvPatchFieldMapper& mapper const fvPatchFieldMapper& mapper
) )
: :
fixedValueFvPatchField<Type>(ptf, p, iF, mapper), fixedValueFvPatchField<Type>(p, iF), // bypass mapper
uniformValue_(ptf.uniformValue_().clone().ptr()) uniformValue_(ptf.uniformValue_().clone().ptr())
{ {
// For safety re-evaluate // Evaluate since value not mapped
const scalar t = this->db().time().timeOutputValue(); const scalar t = this->db().time().timeOutputValue();
fvPatchField<Type>::operator==(uniformValue_->value(t)); fvPatchField<Type>::operator==(uniformValue_->value(t));
} }