mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2025-01-03 10:06:09 +01:00
compute_dim_cord_vect done
This commit is contained in:
parent
d13693a822
commit
a4ba5deac4
@ -4979,28 +4979,21 @@ qmckl_exit_code qmckl_compute_dim_cord_vect (
|
||||
return QMCKL_INVALID_ARG_2;
|
||||
}
|
||||
|
||||
printf("hello %d\n", *dim_cord_vect);
|
||||
*dim_cord_vect = 0;
|
||||
|
||||
for (int p=2; p < cord_num; ++p){
|
||||
printf("in da loop\n");
|
||||
for (int k=p-1; k <= 0; --k) {
|
||||
for (int p=2; p <= cord_num; ++p){
|
||||
for (int k=p-1; k >= 0; --k) {
|
||||
if (k != 0) {
|
||||
lmax = p - k;
|
||||
} else {
|
||||
lmax = p - k - 2;
|
||||
}
|
||||
printf("lmax %d\n", lmax);
|
||||
for (int l = lmax; l <= 0; --l) {
|
||||
// if ( iand(p - k - l, 1_8) == 1) continue;
|
||||
// Does it make sense? it should
|
||||
for (int l = lmax; l >= 0; --l) {
|
||||
if ( ((p - k - l) & 1)==1) continue;
|
||||
printf("in da loop\n");
|
||||
*dim_cord_vect = *dim_cord_vect + 1;
|
||||
*dim_cord_vect=*dim_cord_vect+1;
|
||||
}
|
||||
}
|
||||
}
|
||||
printf("hello 2 %d\n", *dim_cord_vect);
|
||||
|
||||
return QMCKL_SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user