Commit 38eb6f99 authored by mattijs's avatar mattijs
Browse files

initialisation error

parent 98028820
......@@ -50,7 +50,8 @@ Foam::objectRegistry::objectRegistry
IOobject::NO_READ,
IOobject::AUTO_WRITE,
false
)
),
true // to flag that this is the top-level regIOobject
),
HashTable<regIOobject*>(nIoObjects),
time_(t),
......
......@@ -41,13 +41,18 @@ int Foam::regIOobject::fileModificationSkew
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from IOobject
Foam::regIOobject::regIOobject(const IOobject& io)
Foam::regIOobject::regIOobject(const IOobject& io, const bool isTime)
:
IOobject(io),
registered_(false),
ownedByRegistry_(false),
lastModified_(0),
eventNo_(db().getEvent()),
eventNo_ // Do not get event for top level Time database
(
isTime
? 0
: db().getEvent()
),
isPtr_(NULL)
{
// Register with objectRegistry if requested
......
......@@ -99,8 +99,9 @@ public:
// Constructors
//- Construct from IOobject
regIOobject(const IOobject&);
//- Construct from IOobject. Optional flag for if IOobject is the
// top level regIOobject.
regIOobject(const IOobject&, const bool isTime = false);
//- Construct as copy
regIOobject(const regIOobject&);
......
Markdown is supported
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