Skip to content
Snippets Groups Projects
Commit 85af7e05 authored by Kutalmış Berçin's avatar Kutalmış Berçin
Browse files

INT: TDACChemistryModel: avoid redundant MPI communications (#2337)

parent b06c40a2
No related branches found
No related tags found
No related merge requests found
......@@ -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::listCombineGather(active, orEqOp<bool>());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment