Skip to content

Commit

Permalink
mod
Browse files Browse the repository at this point in the history
  • Loading branch information
tmisawa committed Apr 16, 2024
1 parent 80ca567 commit 8faa525
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sz.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ int omp_sz_tJ(
div_down = i & X->Def.Tpow[2*j+1];
div_down = div_down/X->Def.Tpow[2*j+1];
check_doublon = div_up*div_down;
if (check_doublon==0){
if (check_doublon==1){
break;
}
num_up += div_up;
Expand Down Expand Up @@ -2176,7 +2176,7 @@ void calculate_jb_tJNConserved(struct BindStruct *X,long unsigned int *list_jb,

for(iSpnup=iMinup; iSpnup<= iAllup; iSpnup++){
tmp_1 = Binomial(all_up,iSpnup-num_up,comb,all_up);
tmp_2 = Binomial(all_down-(iSpnup-num_up),X->Def.Ne-(iSpnup+num_down),comb,all_down-(iSpnup-num_up));/* tJ all_down-(iSpnup-num_up)*/
tmp_2 = Binomial(all_down-(iSpnup-num_up),X->Def.Ne-(iSpnup+num_down),comb,all_down);/* tJ all_down-(iSpnup-num_up)*/
jb += tmp_1*tmp_2;
}
}
Expand Down

0 comments on commit 8faa525

Please sign in to comment.