mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
proper member initialization
allocating memory of zero size will produce useless pointer set to NULL instead
This commit is contained in:
@ -88,7 +88,7 @@ forceModel::forceModel
|
||||
probeIt_(sm.probeM().active()),
|
||||
requiresEx_(false),
|
||||
forceSubModels_(0),
|
||||
forceSubModel_(new autoPtr<forceSubModel>[nrForceSubModels()])
|
||||
forceSubModel_(NULL)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user