Add fixes to handle missing data correctly

This commit is contained in:
Magne Sjaastad 2024-01-19 11:17:22 +01:00
parent 33f18a7c8f
commit 12ca418ef0
2 changed files with 3 additions and 0 deletions

View File

@ -367,6 +367,8 @@ bool StructGridInterface::hasValidCharacteristicCellSizes() const
//--------------------------------------------------------------------------------------------------
void StructGridInterface::computeCharacteristicCellSize( const std::vector<size_t>& globalCellIndices ) const
{
if ( globalCellIndices.empty() ) return;
ubyte faceConnPosI[4];
cellFaceVertexIndices( StructGridInterface::POS_I, faceConnPosI );

View File

@ -716,6 +716,7 @@ std::string AABBTree::treeInfo() const
{
size_t treeSizeInMB = treeSize() / (1024u *1024u);
auto text = "Tree size : " + std::to_string(treeSizeInMB) + "[MB] \n";
if (treeSize() == 0) return text;
text += "Num leaves: " + std::to_string(leavesCount()) + "\n";