fix order of construction / destruction

dataExchangeModel is needed by the destructor of several models, thus
should be destroyed last and in further consequence must be constructed
first
This commit is contained in:
danielque
2018-10-08 15:40:35 +02:00
parent 4c785b952d
commit ba9f28a5ff
2 changed files with 10 additions and 10 deletions

View File

@ -155,6 +155,14 @@ cfdemCloud::cfdemCloud
turbulenceModelType_
)
),
dataExchangeModel_
(
dataExchangeModel::New
(
couplingProperties_,
*this
)
),
forceModel_(nrForceModels()),
locateModel_
(
@ -165,14 +173,6 @@ cfdemCloud::cfdemCloud
)
),
momCoupleModel_(nrMomCoupleModels()),
dataExchangeModel_
(
dataExchangeModel::New
(
couplingProperties_,
*this
)
),
IOModel_
(
IOModel::New

View File

@ -180,14 +180,14 @@ protected:
const turbulenceModel& turbulence_;
autoPtr<dataExchangeModel> dataExchangeModel_;
PtrList<forceModel> forceModel_;
autoPtr<locateModel> locateModel_;
PtrList<momCoupleModel> momCoupleModel_;
autoPtr<dataExchangeModel> dataExchangeModel_;
autoPtr<IOModel> IOModel_;
autoPtr<probeModel> probeModel_;