Skip to content
Snippets Groups Projects
Commit c8f8a6c1 authored by Henry Weller's avatar Henry Weller
Browse files

fvMatrixSolve: Corrected ref() access to field

parent 58b0f1bc
Branches
Tags
1 merge request!60Merge foundation
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment