From ecbb61cfb4839cb43288a0e2a186a4e6e1a58703 Mon Sep 17 00:00:00 2001 From: Liwei Ji Date: Thu, 8 Aug 2024 10:20:35 -0500 Subject: [PATCH] Multipole: remove unused functions --- Multipole/src/io.cxx | 4 ---- Multipole/src/surface.hxx | 6 +++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Multipole/src/io.cxx b/Multipole/src/io.cxx index c5b594d6..2ea574a1 100644 --- a/Multipole/src/io.cxx +++ b/Multipole/src/io.cxx @@ -39,10 +39,6 @@ namespace Multipole { using namespace std; -static inline int Index_2d(int it, int ip, int ntheta) { - return it + (ntheta + 1) * ip; -} - static bool file_exists(const string &name) { struct stat sts; return !(stat(name.c_str(), &sts) == -1 && errno == ENOENT); diff --git a/Multipole/src/surface.hxx b/Multipole/src/surface.hxx index 9b30bd71..4ab76cf4 100644 --- a/Multipole/src/surface.hxx +++ b/Multipole/src/surface.hxx @@ -106,10 +106,10 @@ public: for (size_t si = 0; si < spinWeights.size(); ++si) { int sw = spinWeights[si]; - realY_[si].resize(lmax + 1); - imagY_[si].resize(lmax + 1); + realY_[si].resize(lmax_ + 1); + imagY_[si].resize(lmax_ + 1); - for (int l = 0; l <= lmax; ++l) { + for (int l = 0; l <= lmax_; ++l) { realY_[si][l].resize(2 * l + 1); imagY_[si][l].resize(2 * l + 1);