initialisation error

This commit is contained in:
mattijs
2009-03-13 08:11:01 +00:00
parent 98028820f9
commit 38eb6f9958
3 changed files with 12 additions and 5 deletions

View File

@ -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),

View File

@ -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

View File

@ -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&);