BUG: compilation error for DimensionedField::T() fixes #1868

- incorrectly used const access for the tmp instead of ref()
This commit is contained in:
Mark Olesen
2020-10-06 14:24:26 +02:00
parent 833ee40904
commit 525ad206be
5 changed files with 166 additions and 7 deletions

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2015-2019 OpenCFD Ltd.
Copyright (C) 2015-2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -437,7 +437,7 @@ Foam::DimensionedField<Type, GeoMesh>::T() const
dimensions_
);
Foam::T(tresult(), *this);
Foam::T(tresult.ref(), *this);
return tresult;
}