fvMatrixSolve: Corrected ref() access to field
Resolves bug-report http://bugs.openfoam.org/view.php?id=2163
This commit is contained in:
parent
5a27ec701c
commit
6a92285b9b
1 changed files with 1 additions and 1 deletions
|
|
@ -330,7 +330,7 @@ template<class Type>
|
||||||
Foam::tmp<Foam::Field<Type>> Foam::fvMatrix<Type>::residual() const
|
Foam::tmp<Foam::Field<Type>> Foam::fvMatrix<Type>::residual() const
|
||||||
{
|
{
|
||||||
tmp<Field<Type>> tres(new Field<Type>(source_));
|
tmp<Field<Type>> tres(new Field<Type>(source_));
|
||||||
Field<Type>& res = tres();
|
Field<Type>& res = tres.ref();
|
||||||
|
|
||||||
addBoundarySource(res);
|
addBoundarySource(res);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue