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));
|
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user