mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: corrected residual calc in solve
This commit is contained in:
@ -219,7 +219,7 @@ Foam::lduMatrix::solverPerformance Foam::fvMatrix<Type>::solve()
|
||||
template<class Type>
|
||||
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();
|
||||
|
||||
addBoundarySource(res);
|
||||
|
||||
Reference in New Issue
Block a user