From 713677cd3cb30bfd96d9deea54af42f125f6c7fd Mon Sep 17 00:00:00 2001 From: danielque Date: Mon, 14 Oct 2019 10:26:46 +0200 Subject: [PATCH] improve compatibility with newer OpenFOAM versions use constructor that explicitly sets the list elements to zero, i.e. List(const label, const zero); available in OpenFOAM 4 and newer --- .../diffusionCoefficients/diffusionCoefficients.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lagrangian/cfdemParticle/subModels/chemistryModel/diffusionCoefficients/diffusionCoefficients.C b/src/lagrangian/cfdemParticle/subModels/chemistryModel/diffusionCoefficients/diffusionCoefficients.C index c2157536..9ce61c26 100644 --- a/src/lagrangian/cfdemParticle/subModels/chemistryModel/diffusionCoefficients/diffusionCoefficients.C +++ b/src/lagrangian/cfdemParticle/subModels/chemistryModel/diffusionCoefficients/diffusionCoefficients.C @@ -166,7 +166,7 @@ void diffusionCoefficient::execute() scalar dBinary_(0); scalar Xnegative(0); - List TotalFraction_(diffusantGasNames_.size(),0); + List TotalFraction_(diffusantGasNames_.size(),Zero); // defining interpolators for T and Pressure interpolationCellPoint TInterpolator_(tempField_);