mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Ensure T can be checked-out on destruction of thermo. See #1619
This commit is contained in:
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user