Skip to content
Snippets Groups Projects
Commit d343380d authored by Chichi Lalescu's avatar Chichi Lalescu
Browse files

don't store useless fourier modes

parent be8d6b51
No related branches found
No related tags found
No related merge requests found
......@@ -94,8 +94,8 @@ def get_kindices(
kvals = []
radii = set([])
index = []
for iz in range(kx.shape[0]):
for ix in range(0, kx.shape[0]):
for iz in range(1, kx.shape[0]):
for ix in range(1, kx.shape[0]):
kval = (kx[iz]**2+kx[ix]**2)**.5
tmp = math.modf(kval)
if (tmp[0] == 0 and tmp[1] <= nx//2):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment