mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Performing maxOp reduce on nSubCycles.
This commit is contained in:
@ -265,8 +265,6 @@ void Foam::InteractingKinematicCloud<ParcelType>::evolve()
|
||||
|
||||
if (nSubCycles > 1)
|
||||
{
|
||||
Info<< nSubCycles << " move-collide subCycles" << endl;
|
||||
|
||||
subCycleTime moveCollideSubCycle
|
||||
(
|
||||
const_cast<Time&>(this->db().time()),
|
||||
|
||||
@ -100,7 +100,14 @@ Foam::label Foam::PairCollision<CloudType>::nSubCycles() const
|
||||
{
|
||||
if (pairFunction_->controlsTimestep())
|
||||
{
|
||||
return pairFunction_->nSubCycles();
|
||||
label nSubCycles = returnReduce
|
||||
(
|
||||
pairFunction_->nSubCycles(), maxOp<label>()
|
||||
);
|
||||
|
||||
Info<< nSubCycles << " move-collide subCycles" << endl;
|
||||
|
||||
return nSubCycles;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user