9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-11-18 11:23:38 +01:00

Fix calculation of mem requirements

This commit is contained in:
Anthony Scemama 2021-02-17 15:49:58 +01:00
parent 875494d534
commit 6c7b162ec5

View File

@ -155,8 +155,10 @@ subroutine davidson_diag_csf_hjj(dets_in,u_in,H_jj,energies,dim_in,sze,sze_csf,N
call resident_memory(rss) call resident_memory(rss)
do do
r1 = 8.d0 * &! bytes r1 = 8.d0 * &! bytes
( dble(sze)*(N_st_diag*itermax) &! U ( dble(sze)*(N_st_diag) &! U
+ 1.0d0*dble(sze*m)*(N_st_diag*itermax) &! W + dble(sze_csf)*(N_st_diag*itermax) &! U_csf
+ dble(sze)*(N_st_diag) &! W
+ dble(sze_csf)*(N_st_diag*itermax) &! W_csf
+ 3.0d0*(N_st_diag*itermax)**2 &! h,y,s_tmp + 3.0d0*(N_st_diag*itermax)**2 &! h,y,s_tmp
+ 1.d0*(N_st_diag*itermax) &! lambda + 1.d0*(N_st_diag*itermax) &! lambda
+ 1.d0*(N_st_diag) &! residual_norm + 1.d0*(N_st_diag) &! residual_norm