Initialize array in RegularLayout
This commit is contained in:
parent
f2fe6a6737
commit
426616f47a
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user