BUG: Ensure T can be checked-out on destruction of thermo. See #1619

This commit is contained in:
Andrew Heather
2022-03-24 09:17:00 +00:00
parent 80318542e1
commit b9d6a84314

View File

@ -436,7 +436,15 @@ Foam::autoPtr<Foam::basicThermo> Foam::basicThermo::New
Foam::basicThermo::~basicThermo()
{
db().checkOut("p");
if (pOwner_)
{
db().checkOut(p_.name());
}
if (TOwner_)
{
db().checkOut(T_.name());
}
}