fvMatrixSolve: Corrected ref() access to field

Resolves bug-report http://bugs.openfoam.org/view.php?id=2163
This commit is contained in:
Henry Weller 2016-07-28 18:00:21 +01:00
parent 84d90563bc
commit 51ea906a20

View File

@ -330,7 +330,7 @@ template<class Type>
Foam::tmp<Foam::Field<Type>> Foam::fvMatrix<Type>::residual() const
{
tmp<Field<Type>> tres(new Field<Type>(source_));
Field<Type>& res = tres();
Field<Type>& res = tres.ref();
addBoundarySource(res);