Initialize array in RegularLayout

This commit is contained in:
James E McClure 2018-06-13 10:25:26 -04:00
parent f2fe6a6737
commit 426616f47a

View File

@ -1530,6 +1530,9 @@ void ScaLBL_Communicator::RegularLayout(IntArray map, const double *data, Double
int Ny = map.size(1);
int Nz = map.size(2);
// initialize the array
regdata.fill(-1.f);
double *TmpDat;
double value;
TmpDat = new double [N];