Ian Jauslin
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jauslin <ian@jauslin.org>2022-05-26 17:28:48 -0400
committerIan Jauslin <ian@jauslin.org>2022-05-26 18:44:28 -0400
commit480ce57afa138d0daac4ae750a63ac2ee9e56bd4 (patch)
tree72f912ae8ad89e59aa335503c0e0150991d69d9e /src/driving.c
parentaa66aadb7451fe3f82f4c05e2fe860084e1e644f (diff)
Fix denomination: enstrophy -> alpha
Diffstat (limited to 'src/driving.c')
-rw-r--r--src/driving.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/driving.c b/src/driving.c
index 70c2564..fa26b4b 100644
--- a/src/driving.c
+++ b/src/driving.c
@@ -12,13 +12,13 @@ int g_test(
for(kx=-K1;kx<=K1;kx++){
for (ky=-K2;ky<=K2;ky++){
if(kx==2 && ky==-1){
- g[klookup(kx,ky,K1,K2)]=0.5+sqrt(3)/2*I;
+ g[klookup(kx,ky,2*K1+1,2*K2+1)]=0.5+sqrt(3)/2*I;
}
else if(kx==-2 && ky==1){
- g[klookup(kx,ky,K1,K2)]=0.5-sqrt(3)/2*I;
+ g[klookup(kx,ky,2*K1+1,2*K2+1)]=0.5-sqrt(3)/2*I;
}
else{
- g[klookup(kx,ky,K1,K2)]=0.;
+ g[klookup(kx,ky,2*K1+1,2*K2+1)]=0.;
}
}
}