BUG: corrected residual calc in solve

This commit is contained in:
andy
2011-06-07 10:48:11 +01:00
parent e634f63a6a
commit a14dd6c723

View File

@ -219,7 +219,7 @@ Foam::lduMatrix::solverPerformance Foam::fvMatrix<Type>::solve()
template<class Type> 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(source_); tmp<Field<Type> > tres(new Field<Type>(source_));
Field<Type>& res = tres(); Field<Type>& res = tres();
addBoundarySource(res); addBoundarySource(res);