Skip to content

Commit

Permalink
allocate nqv in the subroutine allocatesh
Browse files Browse the repository at this point in the history
  • Loading branch information
xh125 committed Oct 8, 2021
1 parent 8e1c739 commit 8f68052
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion src_complex/initialsh.f90
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ subroutine init_normalmode_coordinate_velocity(nmodes,nq,w,T,l_ph_quantum,ph_Q,p
real(kind=dp) :: E_ph_class,E_ph_quantum
integer :: iq,imode

allocate(nqv(nmodes,nq))
nqv = 0.0

do iq=1,nq
Expand Down
4 changes: 3 additions & 1 deletion src_complex/surfacehopping.f90
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module surfacehopping
use parameters, only : nsnap,naver,ncore,nnode
use surfacecom, only : iesurface,ihsurface,esurface_type,hsurface_type,&
phQ,phP,phQ0,phP0,phK,phU,SUM_phU,SUM_phK,SUM_phK0,SUM_phE,&
phQsit,phPsit,phKsit,phUsit,ld_gamma,&
phQsit,phPsit,phKsit,phUsit,ld_gamma,nqv,&
dEa_dQ,dEa_dQ_e,dEa_dQ_h,dEa2_dQ2,dEa2_dQ2_e,dEa2_dQ2_h,&
d_e,g_e,g1_e,c_e,c_e_nk,w_e,w0_e,d0_e,nefre_sh,&
d_h,g_h,g1_h,c_h,c_h_nk,w_h,w0_h,d0_h,nhfre_sh,&
Expand Down Expand Up @@ -37,6 +37,8 @@ subroutine allocatesh(methodsh,lelecsh,lholesh,nmodes,nq)

allocate(ld_gamma(nmodes,nq))
ld_gamma = 0.0
allocate(nqv(nmodes,nq))
nqv = 0.0
allocate(phQ(nmodes,nq),stat=ierr,errmsg=msg) ! x(1:nphfre)
if(ierr /=0) then
call errore('surfacehopping','Error allocating phQ',1)
Expand Down

0 comments on commit 8f68052

Please sign in to comment.