Skip to content

Commit

Permalink
Multipole: remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
lwJi committed Aug 11, 2024
1 parent 714da6a commit ab59cf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions Multipole/src/io.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions Multipole/src/surface.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ab59cf0

Please sign in to comment.