mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: check of valid Ptr before using it
This commit is contained in:
@ -137,6 +137,8 @@ void Foam::interRegionHeatTransferModel::addSup
|
|||||||
const label fieldI
|
const label fieldI
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
if (secondaryToPrimaryInterpPtr_.valid())
|
||||||
|
{
|
||||||
if (firstIter_)
|
if (firstIter_)
|
||||||
{
|
{
|
||||||
check();
|
check();
|
||||||
@ -233,6 +235,7 @@ void Foam::interRegionHeatTransferModel::addSup
|
|||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user