bugfix: changed order of logic to prevent hand on redude in parallel

This commit is contained in:
andy
2009-05-28 11:46:54 +01:00
parent 3a32131ccd
commit 0a97692857

View File

@ -480,7 +480,7 @@ void Foam::fvMatrix<Type>::setReference
const bool forceReference
)
{
if (celli >= 0 && (psi_.needReference() || forceReference))
if ((forceReference || psi_.needReference()) && celli >= 0)
{
source()[celli] += diag()[celli]*value;
diag()[celli] += diag()[celli];