mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: suppress meta information for empty zone meshes
This commit is contained in:
@ -647,8 +647,16 @@ void Foam::ZoneMesh<ZoneType, MeshType>::movePoints(const pointField& pts)
|
|||||||
template<class ZoneType, class MeshType>
|
template<class ZoneType, class MeshType>
|
||||||
void Foam::ZoneMesh<ZoneType, MeshType>::updateMetaData()
|
void Foam::ZoneMesh<ZoneType, MeshType>::updateMetaData()
|
||||||
{
|
{
|
||||||
dictionary& meta = this->getMetaData();
|
wordList zoneNames(this->names());
|
||||||
meta.set("names", this->names());
|
if (zoneNames.empty())
|
||||||
|
{
|
||||||
|
this->removeMetaData();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dictionary& meta = this->getMetaData();
|
||||||
|
meta.set("names", zoneNames);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user