simplify construction of list

This commit is contained in:
danielque
2019-08-14 16:08:22 +02:00
parent ad3ccf0359
commit acfe33cc50

View File

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