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
This commit is contained in:
danielque
2019-10-14 10:26:46 +02:00
parent cef2d3afb1
commit 713677cd3c

View File

@ -166,7 +166,7 @@ void diffusionCoefficient::execute()
scalar dBinary_(0);
scalar Xnegative(0);
List<scalar> TotalFraction_(diffusantGasNames_.size(),0);
List<scalar> TotalFraction_(diffusantGasNames_.size(),Zero);
// defining interpolators for T and Pressure
interpolationCellPoint <scalar> TInterpolator_(tempField_);