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:
@ -136,6 +136,8 @@ void Foam::interRegionHeatTransferModel::addSup
|
|||||||
fvMatrix<scalar>& eEqn,
|
fvMatrix<scalar>& eEqn,
|
||||||
const label fieldI
|
const label fieldI
|
||||||
)
|
)
|
||||||
|
{
|
||||||
|
if (secondaryToPrimaryInterpPtr_.valid())
|
||||||
{
|
{
|
||||||
if (firstIter_)
|
if (firstIter_)
|
||||||
{
|
{
|
||||||
@ -234,6 +236,7 @@ void Foam::interRegionHeatTransferModel::addSup
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void Foam::interRegionHeatTransferModel::writeData(Ostream& os) const
|
void Foam::interRegionHeatTransferModel::writeData(Ostream& os) const
|
||||||
|
|||||||
Reference in New Issue
Block a user