mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
register on mesh, not time
This commit is contained in:
@ -43,19 +43,19 @@ autoPtr<radiationModel> radiationModel::New
|
|||||||
{
|
{
|
||||||
word radiationModelTypeName;
|
word radiationModelTypeName;
|
||||||
|
|
||||||
// Enclose the creation of the radiationPropertiesDict to ensure it is
|
// Note: no need to register/keep radiationProperties since models read
|
||||||
// deleted before the radiationModel is created otherwise the dictionary
|
// it themselves.
|
||||||
// is entered in the database twice
|
|
||||||
{
|
{
|
||||||
IOdictionary radiationPropertiesDict
|
IOdictionary radiationPropertiesDict
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
"radiationProperties",
|
"radiationProperties",
|
||||||
T.mesh().time().constant(),
|
T.time().constant(),
|
||||||
T.mesh().objectRegistry::db(),
|
T.mesh(),
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE,
|
||||||
|
false
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user