Skip to content

Commit

Permalink
ZPE updated printed and polyomial function can except one parameter
Browse files Browse the repository at this point in the history
ZPE updated printed and polyomial function can except one parameter
  • Loading branch information
Trovemaster committed Jan 3, 2019
1 parent fb32a8e commit a5e4f81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dipole.f90
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ subroutine dm_tranint
enddo
end do
!
if (iverbose>=2) write(out,'(/"Zero point energy (ZPE) = ",f18.6," (global zero, used for intensities)")') intensity%ZPE
if (iverbose>=4) write(out,"(/'Partition funciton = ',f18.4,' T = ',f12.2)") intensity%part_func,intensity%temperature
!
endif
Expand Down Expand Up @@ -1211,7 +1212,6 @@ subroutine dm_intensity(Jval,iverbose)
quantaI%iJ_ID,quantaF%iJ_ID,1,1,linestr
!
else

!
write(transunit,"(i12,1x,i12,2x,es10.4,4x,f16.6)") &
quantaF%iroot,quantaI%iroot,A_einst,nu_if
Expand Down
7 changes: 5 additions & 2 deletions functions.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1028,11 +1028,14 @@ function poten_polynom(r,parameters) result(f)
N = size(parameters)
!
v0 = parameters(1)
!
f = v0
!
if (N==1) return
!
r0 = parameters(2)
!
y = (r-r0)
!
f = v0
do k=3,N
f = f + parameters(k)*y**(k-2)
enddo
Expand Down

0 comments on commit a5e4f81

Please sign in to comment.