Ian Jauslin
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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.;
}
}
}