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)); int DEM_dump_Interval(particleCloud.couplingProperties().lookupOrDefault<int>("dumpInterval",1000));
particleCloud.reAllocArrays(); particleCloud.reAllocArrays();
double **positions_; double **positions_=NULL;
double **velocities_; double **velocities_=NULL;
double **radii_; double **radii_=NULL;
double **voidfractions_; double **voidfractions_=NULL;
double **particleWeights_; double **particleWeights_=NULL;
double **particleVolumes_; double **particleVolumes_=NULL;
double **particleV_; double **particleV_=NULL;
int **cellIDs_; int **cellIDs_=NULL;
particleCloud.dataExchangeM().allocateArray(positions_,0.,3); particleCloud.dataExchangeM().allocateArray(positions_,0.,3);
particleCloud.dataExchangeM().allocateArray(velocities_,0.,3); particleCloud.dataExchangeM().allocateArray(velocities_,0.,3);