Skip to content

Commit c3fde72

Browse files
committed
Expand on comment regarding factor of 1/2
1 parent 138bf0f commit c3fde72

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_FFBbasis2D.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ def testElement(self):
5858
r0 = self.basis.r0[k, ell]
5959

6060
# TODO: Figure out where these factors of 1 / 2 are coming from.
61+
# Intuitively, the grid should go from -L / 2 to L / 2, not -L / 2 to
62+
# L / 4. Furthermore, there's an extra factor of 1 / 2 in the
63+
# definition of `im` below that may be related.
6164
r = g2d["r"] * self.L / 4
6265

6366
im = np.zeros((self.L, self.L), dtype=self.dtype)

0 commit comments

Comments
 (0)