mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
INT: TDACChemistryModel: avoid redundant MPI communications (#2337)
This commit is contained in:
committed by
Andrew Heather
parent
583fc4fb0d
commit
85786c6989
@ -5,7 +5,7 @@
|
||||
\\ / A nd | www.openfoam.com
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2016-2017 OpenFOAM Foundation
|
||||
Copyright (C) 2016-2021 OpenFOAM Foundation
|
||||
Copyright (C) 2016-2021 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -864,7 +864,7 @@ Foam::scalar Foam::TDACChemistryModel<ReactionThermo, ThermoType>::solve
|
||||
<< " " << nActiveSpecies/nAvg << endl;
|
||||
}
|
||||
|
||||
if (Pstream::parRun())
|
||||
if (reduced && Pstream::parRun())
|
||||
{
|
||||
List<bool> active(composition.active());
|
||||
Pstream::listCombineAllGather(active, orEqOp<bool>());
|
||||
|
||||
Reference in New Issue
Block a user