Skip to content
Snippets Groups Projects
Commit 85786c69 authored by Kutalmış Berçin's avatar Kutalmış Berçin Committed by Andrew Heather
Browse files

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

parent 583fc4fb
Branches
Tags
1 merge request!530BUG: 2022-1: Various bug fixes
......@@ -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>());
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment