mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
initialize pointers to NULL
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user