diff --git a/src/thermophysicalModels/radiation/radiationModel/radiationModel/newRadiationModel.C b/src/thermophysicalModels/radiation/radiationModel/radiationModel/newRadiationModel.C index a5c27adac8a13d54dff0f8908ebdb8d8c850cff4..90c7887d71415470185bb07275961c6760845310 100644 --- a/src/thermophysicalModels/radiation/radiationModel/radiationModel/newRadiationModel.C +++ b/src/thermophysicalModels/radiation/radiationModel/radiationModel/newRadiationModel.C @@ -43,19 +43,19 @@ autoPtr<radiationModel> radiationModel::New { word radiationModelTypeName; - // Enclose the creation of the radiationPropertiesDict to ensure it is - // deleted before the radiationModel is created otherwise the dictionary - // is entered in the database twice + // Note: no need to register/keep radiationProperties since models read + // it themselves. { IOdictionary radiationPropertiesDict ( IOobject ( "radiationProperties", - T.mesh().time().constant(), - T.mesh().objectRegistry::db(), + T.time().constant(), + T.mesh(), IOobject::MUST_READ, - IOobject::NO_WRITE + IOobject::NO_WRITE, + false ) );