Commit c8f8a6c1 authored by Henry Weller's avatar Henry Weller
Browse files

fvMatrixSolve: Corrected ref() access to field

Resolves bug-report http://bugs.openfoam.org/view.php?id=2163
parent 58b0f1bc
......@@ -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);
......
Supports Markdown
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