Skip to content

Commit c88ab3b

Browse files
committed
warning pt2
1 parent bd9542f commit c88ab3b

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

org/qmckl_forces.org

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5830,8 +5830,8 @@ function qmckl_compute_forces_ao_value_doc(context, &
58305830
integer(qmckl_exit_code) :: info
58315831

58325832
integer :: l, il, k
5833-
integer*8 :: ipoint, inucl, ishell
5834-
integer*8 :: ishell_start, ishell_end
5833+
integer*8 :: ipoint, inucl
5834+
integer*8 :: ishell_start, ishell_end, ishell
58355835
integer :: lstart(0:20)
58365836
double precision :: x, y, z, r2
58375837
double precision :: cutoff
@@ -6256,7 +6256,8 @@ integer(qmckl_exit_code) function qmckl_compute_forces_mo_value_doc(context, &
62566256
real(c_double) , intent(out) :: forces_mo_value(mo_num,point_num,3,nucl_num)
62576257

62586258

6259-
integer*8 :: i,j,k,a, m, ishell_start, ishell_end, il, ishell, l
6259+
integer*8 :: i,j,a, m, ishell_start, ishell_end, il, ishell
6260+
integer :: l, k
62606261
double precision :: c1, c2, c3
62616262

62626263
integer, allocatable :: ao_index(:)
@@ -6633,11 +6634,11 @@ integer function qmckl_compute_forces_mo_g_doc(context, &
66336634
real (c_double ) , intent(in) :: coefficient_t(mo_num,ao_num)
66346635
real (c_double ) , intent(in) :: ao_hessian(ao_num,4,point_num,3,nucl_num)
66356636
real (c_double ) , intent(out) :: forces_mo_g(mo_num,3,point_num,3,nucl_num)
6636-
integer*8 :: i,j,k, m, n,a
6637+
integer*8 :: i,j, m, n,a
66376638
double precision :: c1
66386639

6639-
integer :: l, il, ishell
6640-
integer*8 :: ishell_start, ishell_end
6640+
integer :: l, il, k
6641+
integer*8 :: ishell_start, ishell_end, ishell
66416642
integer :: lstart(0:20)
66426643

66436644
integer , allocatable :: ao_index(:)
@@ -7032,8 +7033,9 @@ integer function qmckl_compute_forces_mo_l_doc(context, &
70327033
real (c_double ) , intent(in) :: coefficient_t(mo_num,ao_num)
70337034
real (c_double ) , intent(in) :: ao_hessian(ao_num,4,point_num,3,nucl_num)
70347035
real (c_double ) , intent(out) :: forces_mo_l(mo_num,point_num,3,nucl_num)
7035-
integer*8 :: i,j,k, m, n,a, l, il, ishell, ishell_start, ishell_end
7036+
integer*8 :: i,j, m, n,a, il, ishell, ishell_start, ishell_end
70367037
integer :: lstart(0:20)
7038+
integer :: l, k
70377039
double precision :: c1
70387040

70397041
integer , allocatable :: ao_index(:)

org/qmckl_jastrow_champ_single.org

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8535,16 +8535,21 @@ qmckl_get_jastrow_champ_single_accept(qmckl_context context)
85358535

85368536
int shift8, shift9, shift10, shift11, shift12, shift13, shift14;
85378537

8538+
shift2 = ctx->electron.num*ctx->electron.num;
8539+
shift5 = ctx->electron.num*4*ctx->electron.num;
8540+
shift6 = ctx->electron.num*4;
8541+
shift11 = ctx->nucleus.num*4*ctx->electron.num;
8542+
shift13 = ctx->nucleus.num*4;
8543+
shift14 = ctx->nucleus.num*ctx->electron.num;
8544+
8545+
85388546
if (ctx->jastrow_champ.cord_num > 0) {
85398547

85408548
shift1 = (ctx->jastrow_champ.cord_num+1)*ctx->electron.num*ctx->electron.num;
8541-
shift2 = ctx->electron.num*ctx->electron.num;
85428549

85438550
shift3 = (ctx->jastrow_champ.cord_num+1)*ctx->electron.num;
85448551

85458552
shift4 = (ctx->jastrow_champ.cord_num+1)*ctx->electron.num*4*ctx->electron.num;
8546-
shift5 = ctx->electron.num*4*ctx->electron.num;
8547-
shift6 = ctx->electron.num*4;
85488553

85498554
shift7 = (ctx->jastrow_champ.cord_num+1)*ctx->electron.num*4;
85508555

@@ -8553,12 +8558,7 @@ qmckl_get_jastrow_champ_single_accept(qmckl_context context)
85538558

85548559
shift10 = (ctx->jastrow_champ.cord_num+1)*ctx->nucleus.num*4*ctx->electron.num;
85558560

8556-
shift11 = ctx->nucleus.num*4*ctx->electron.num;
8557-
85588561
shift12 = (ctx->jastrow_champ.cord_num+1)*ctx->nucleus.num*4;
8559-
shift13 = ctx->nucleus.num*4;
8560-
8561-
shift14 = ctx->nucleus.num*ctx->electron.num;
85628562

85638563
for (int nw = 0; nw < ctx->electron.walker.num; nw++) {
85648564
ctx->jastrow_champ.factor_een[nw] = ctx->jastrow_champ.factor_een[nw] + ctx->single_point.delta_een[nw];

0 commit comments

Comments
 (0)