From a71ff2d2ad362781074c48bd8d0375261d893c18 Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Thu, 6 Mar 2025 15:05:55 +0800 Subject: [PATCH] tmp --- lib/potential/gm_data.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/potential/gm_data.cpp b/lib/potential/gm_data.cpp index 091c9b0..3ce865e 100644 --- a/lib/potential/gm_data.cpp +++ b/lib/potential/gm_data.cpp @@ -357,7 +357,7 @@ void gctl::power_spectrum(array &P, const array &C, const array< P[i - n] += (C[id + j]*C[id + j] + S[id + j]*S[id + j]); } - P[i - n] *= (n + 1)*pow(R/r, 2*n + 4); + P[i - n] *= (i + 1)*pow(R/r, 2*i + 4); } return; } \ No newline at end of file