Skip to content
Snippets Groups Projects
Commit cb52bb31 authored by mattijs's avatar mattijs
Browse files

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

parent edb178cd
Branches
Tags
No related merge requests found
......@@ -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<Type>::uniformFixedValueFvPatchField
const fvPatchFieldMapper& mapper
)
:
fixedValueFvPatchField<Type>(ptf, p, iF, mapper),
fixedValueFvPatchField<Type>(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<Type>::operator==(uniformValue_->value(t));
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment