Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Perminder <[email protected]>
  • Loading branch information
perminder-17 committed Nov 3, 2024
1 parent 973fe51 commit bcb02c4
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 141 deletions.
7 changes: 1 addition & 6 deletions avogadro/core/cube.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,7 @@ Cube::~Cube()

std::vector<float>::const_iterator Cube::getRowIter(size_t j, size_t k) const
{
// size_t startIdx = k * m_points.x() * m_points.y() + j * m_points.x();
// if (startIdx >= m_data.size()) {
// std::cout << "Error: startIdx out of bounds in getRowIter.\n";
// return m_data.cend();
// }
return m_data.cbegin() + m_points.x() * (k * m_points.y() + j);
// return m_data.cbegin() + startIdx;
}


Expand Down Expand Up @@ -363,6 +357,7 @@ std::array<std::array<float, 3>, 8> Cube::getPosCube(size_t i, size_t j, size_t
pos[7][1] = ypos + m_spacing.y();
pos[7][2] = zpos + m_spacing.z();

// std::cout << "pos" << " " << pos[0][0] << std::endl;

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
return pos;
}

Expand Down
Loading

0 comments on commit bcb02c4

Please sign in to comment.