initialize pointers to NULL

This commit is contained in:
Daniel
2023-08-23 12:47:22 +02:00
committed by GitHub
parent 1153cf1544
commit fcb396dd2e

View File

@ -65,14 +65,14 @@ int main(int argc, char *argv[])
int DEM_dump_Interval(particleCloud.couplingProperties().lookupOrDefault<int>("dumpInterval",1000));
particleCloud.reAllocArrays();
double **positions_;
double **velocities_;
double **radii_;
double **voidfractions_;
double **particleWeights_;
double **particleVolumes_;
double **particleV_;
int **cellIDs_;
double **positions_=NULL;
double **velocities_=NULL;
double **radii_=NULL;
double **voidfractions_=NULL;
double **particleWeights_=NULL;
double **particleVolumes_=NULL;
double **particleV_=NULL;
int **cellIDs_=NULL;
particleCloud.dataExchangeM().allocateArray(positions_,0.,3);
particleCloud.dataExchangeM().allocateArray(velocities_,0.,3);