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 17:57:06 +01:00
parent 5a27ec701c
commit 6a92285b9b

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);