Commit 7311aac6 authored by mattijs's avatar mattijs
Browse files

register on mesh, not time

parent c0f69c19
......@@ -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
)
);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment