把下面的代码
const IOdictionary dict
(
IOobject
(
dictName,
db.time().constant(),
db,
IOobject::MUST_READ,
IOobject::NO_WRITE
)
);
改为
const IOdictionary dict
(
IOobject
(
dictName,
db.time().constant(),
db,
IOobject::MUST_READ,
IOobject::NO_WRITE,
false
)
);