mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
use proper data type
This commit is contained in:
@ -91,7 +91,7 @@ bool cfdemCloudIB::reAllocArrays()
|
||||
if(cfdemCloud::reAllocArrays())
|
||||
{
|
||||
// get arrays of new length
|
||||
dataExchangeM().allocateArray(angularVelocities_,0,3);
|
||||
dataExchangeM().allocateArray(angularVelocities_,0.,3);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@ -128,7 +128,7 @@ void cfdemCloudMS::getDEMdata()
|
||||
|
||||
//- save clump volume and mass
|
||||
double **typeDH(NULL);
|
||||
dataExchangeM().allocateArray(typeDH,-1,1,nClumpTypes()+1);
|
||||
dataExchangeM().allocateArray(typeDH,-1.,1,nClumpTypes()+1);
|
||||
if(manDHdev_) // use manually defined dH
|
||||
{
|
||||
for(int k = 1;k <= nClumpTypes(); k++)
|
||||
@ -192,18 +192,18 @@ bool cfdemCloudMS::reAllocArrays()
|
||||
if(cfdemCloud::reAllocArrays())
|
||||
{
|
||||
// get arrays of new length
|
||||
dataExchangeM().allocateArray(positionsCM_,0,3,"nbodies");
|
||||
dataExchangeM().allocateArray(velocitiesCM_,0,3,"nbodies");
|
||||
dataExchangeM().allocateArray(positionsCM_,0.,3,"nbodies");
|
||||
dataExchangeM().allocateArray(velocitiesCM_,0.,3,"nbodies");
|
||||
dataExchangeM().allocateArray(cellIDsCM_,-1,1,"nbodies");
|
||||
dataExchangeM().allocateArray(bodies_,0,1);
|
||||
dataExchangeM().allocateArray(nrigids_,0,1,"nbodies");
|
||||
dataExchangeM().allocateArray(clumpType_,0,1,"nbodies");
|
||||
dataExchangeM().allocateArray(clumpVol_,0,1,"nbodies");
|
||||
dataExchangeM().allocateArray(clumpVol_,0.,1,"nbodies");
|
||||
dataExchangeM().allocateArray(clumpDH_,1.,1,"nbodies");
|
||||
dataExchangeM().allocateArray(clumpWeights_,1,1,"nbodies");
|
||||
dataExchangeM().allocateArray(impForcesCM_,0,3,"nbodies");
|
||||
dataExchangeM().allocateArray(expForcesCM_,0,3,"nbodies");
|
||||
dataExchangeM().allocateArray(DEMForcesCM_,0,3,"nbodies");
|
||||
dataExchangeM().allocateArray(clumpWeights_,1.,1,"nbodies");
|
||||
dataExchangeM().allocateArray(impForcesCM_,0.,3,"nbodies");
|
||||
dataExchangeM().allocateArray(expForcesCM_,0.,3,"nbodies");
|
||||
dataExchangeM().allocateArray(DEMForcesCM_,0.,3,"nbodies");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@ -51,8 +51,8 @@ void Foam::regionModel::reAllocArrays() const
|
||||
if(particleCloud_.numberOfParticlesChanged())
|
||||
{
|
||||
// get arrays of new length
|
||||
particleCloud_.dataExchangeM().allocateArray(inRegion_,1,1);
|
||||
particleCloud_.dataExchangeM().allocateArray(outRegion_,1,1);
|
||||
particleCloud_.dataExchangeM().allocateArray(inRegion_,1.,1);
|
||||
particleCloud_.dataExchangeM().allocateArray(outRegion_,1.,1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user