ENH: check of valid Ptr before using it

This commit is contained in:
sergio
2012-02-08 10:18:44 +00:00
parent acb4ca2425
commit 93e2226595

View File

@ -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;
} }
} }
}
} }