mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
initialisation error
This commit is contained in:
@ -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&);
|
||||
|
||||
Reference in New Issue
Block a user