fvMesh: Check the topoChanger is allocated in the topoChanging() function
This commit is contained in:
@ -646,13 +646,15 @@ Foam::fvMesh::~fvMesh()
|
|||||||
|
|
||||||
bool Foam::fvMesh::topoChanging() const
|
bool Foam::fvMesh::topoChanging() const
|
||||||
{
|
{
|
||||||
return topoChanger_->dynamic();
|
return topoChanger_.valid() && topoChanger_->dynamic();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool Foam::fvMesh::dynamic() const
|
bool Foam::fvMesh::dynamic() const
|
||||||
{
|
{
|
||||||
return topoChanger_->dynamic() || mover_->dynamic();
|
return
|
||||||
|
(topoChanger_.valid() && topoChanger_->dynamic())
|
||||||
|
|| (mover_.valid() && mover_->dynamic());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user