Fix for assignment of value for UniformDimensionedScalarField if constructed from Istream via dictionary lookup

This commit is contained in:
Pascal Beckstein 2016-04-07 13:54:24 +02:00
parent ac941215d5
commit 512b75bef5

View file

@ -61,7 +61,7 @@ Foam::UniformDimensionedField<Type>::UniformDimensionedField
{
dictionary dict(readStream(typeName));
this->dimensions().reset(dict.lookup("dimensions"));
this->value() = dict.lookup("value");
this->value() = pTraits<Type>(dict.lookup("value"));
}