From 63324fecd423c648caa8fdc480c27c90fa81f065 Mon Sep 17 00:00:00 2001 From: Perminder Date: Sun, 10 Nov 2024 07:14:25 +0530 Subject: [PATCH] minor fixes Signed-off-by: Perminder --- avogadro/core/cube.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/avogadro/core/cube.cpp b/avogadro/core/cube.cpp index ce3facb8fc..b9f8dabf11 100644 --- a/avogadro/core/cube.cpp +++ b/avogadro/core/cube.cpp @@ -300,9 +300,7 @@ Cube::getGradCube(int i, int j, int k) const std::array Cube::getValsCube(int i, int j, int k) const { std::array 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); @@ -327,7 +325,6 @@ std::array, 8> Cube::getPosCube(int i, int j, int k) const { std::array, 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());