fvMatrixSolve: Corrected ref() access to field
Resolves bug-report http://bugs.openfoam.org/view.php?id=2163
This commit is contained in:
parent
84d90563bc
commit
51ea906a20
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user