Skip to content

Commit

Permalink
minor 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 10, 2024
1 parent 6507df7 commit 63324fe
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions avogadro/core/cube.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,7 @@ Cube::getGradCube(int i, int j, int k) const
std::array<float, 8> Cube::getValsCube(int i, int j, int k) const
{
std::array<float, 8> vals;

int idx = i + (j * m_points.x()) + (k * m_points.x() * m_points.y());


vals[0] = getData(i, j, k);
vals[1] = getData(i + 1, j, k);
vals[2] = getData(i + 1, j + 1, k);
Expand All @@ -327,7 +325,6 @@ std::array<std::array<float, 3>, 8> Cube::getPosCube(int i, int j, int k) const
{
std::array<std::array<float, 3>, 8> pos;

// std::cout<< m_spacing.x();
float xpos = m_min.x() + (i * m_spacing.x());
float ypos = m_min.y() + (j * m_spacing.y());
float zpos = m_min.z() + (k * m_spacing.z());
Expand Down

0 comments on commit 63324fe

Please sign in to comment.