Skip to content

Commit

Permalink
Improved TrimNodes functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacarniato committed Feb 18, 2025
1 parent c1ab5a8 commit d92b768
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions libs/MeshKernel/src/CurvilinearGrid/CurvilinearGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,14 @@ void CurvilinearGrid::TrimGridNodes()
return;
}

UInt rows = static_cast<UInt>(m_gridNodes.rows());
UInt cols = static_cast<UInt>(m_gridNodes.cols());
const auto rows = static_cast<UInt>(m_gridNodes.rows());
const auto cols = static_cast<UInt>(m_gridNodes.cols());

// Initialize valid row/column bounds
UInt firstValidRow = 0, lastValidRow = rows - 1;
UInt firstValidCol = 0, lastValidCol = cols - 1;
UInt firstValidRow = 0;
UInt lastValidRow = rows - 1;
UInt firstValidCol = 0;
UInt lastValidCol = cols - 1;
bool foundFirstRow = false;
bool foundFirstCol = false;
bool foundLastRow = false;
Expand Down

0 comments on commit d92b768

Please sign in to comment.