mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add fixes to handle missing data correctly
This commit is contained in:
parent
33f18a7c8f
commit
12ca418ef0
@ -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 );
|
||||
|
||||
|
@ -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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user