mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
bugfix: changed order of logic to prevent hand on redude in parallel
This commit is contained in:
@ -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];
|
||||
|
||||
Reference in New Issue
Block a user