Skip to content

Commit

Permalink
Update cm5.f90
Browse files Browse the repository at this point in the history
correct dipole vector components
  • Loading branch information
Holger Kruse authored Mar 7, 2018
1 parent 5dbf5f2 commit 3f5986b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cm5.f90
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ program cm5charge
enddo

dipole=dipole*4.802889778d0
dx= sqrt(dipole(1)**2)
dy= sqrt(dipole(2)**2)
dz= sqrt(dipole(3)**2)
dx= dipole(1)
dy= dipole(2)
dz= dipole(3)
s=sqrt(dipole(1)**2+dipole(2)**2+dipole(3)**2)

write(*,'(a,F10.6)' ) ' Total CM5 charge : ',sum(qcm5)
Expand All @@ -180,9 +180,9 @@ program cm5charge


dipole=dipole*4.802889778d0
dx= sqrt(dipole(1)**2)
dy= sqrt(dipole(2)**2)
dz= sqrt(dipole(3)**2)
dx= dipole(1)
dy= dipole(2)
dz= dipole(3)
s=sqrt(dipole(1)**2+dipole(2)**2+dipole(3)**2)

write(*,'(a,4(F10.6,x))') ' CM5 scaled [Debye] : ', dx,dy,dz,s
Expand Down

0 comments on commit 3f5986b

Please sign in to comment.