From e992727f9ee5f09ffdee37a0fdb2695918e2b777 Mon Sep 17 00:00:00 2001 From: mattijs Date: Fri, 2 Oct 2009 17:19:13 +0100 Subject: [PATCH] read radiationProperties on mesh, not Time --- .../radiationModel/radiationModel/newRadiationModel.C | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/thermophysicalModels/radiation/radiationModel/radiationModel/newRadiationModel.C b/src/thermophysicalModels/radiation/radiationModel/radiationModel/newRadiationModel.C index c7840d94..f0502f88 100644 --- a/src/thermophysicalModels/radiation/radiationModel/radiationModel/newRadiationModel.C +++ b/src/thermophysicalModels/radiation/radiationModel/radiationModel/newRadiationModel.C @@ -43,19 +43,19 @@ autoPtr 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 ) ); -- 2.11.4.GIT