Skip to content

Commit

Permalink
Update pot_CH3OH_Bowman.f90
Browse files Browse the repository at this point in the history
  • Loading branch information
Trovemaster committed May 17, 2024
1 parent 5819f84 commit 2daafd3
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions pot_CH3OH_Bowman.f90
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,29 @@ function MLpoten(ncoords,natoms,local,xyz,force) result(f)
real(ark),intent(in) :: local(ncoords)
real(ark),intent(in) :: xyz(natoms,3)
real(ark),intent(in) :: force(:)
real(ark) :: f
real(ark) :: f,xyz_user(3,natoms)
integer(ik) :: m,mr,N
!
m = int(force(1),ik)
mr = int(force(2),ik)
!
N = size(force(:))
!
! convert TROVE xyz to uzer's XYZ
!
xyz_user(:,1) = xyz(3,:)
xyz_user(:,2) = xyz(4,:)
xyz_user(:,3) = xyz(5,:)
xyz_user(:,4) = xyz(6,:)
xyz_user(:,5) = xyz(1,:)
xyz_user(:,6) = xyz(2,:)
!
xyz_user = xyz_user/bohr
!
call potshell(force(3:N),m,mr,xyz,f)
call potshell(force(3:N),m,mr,xyz_user,f)
!
end function MLpoten




!
subroutine potshell(coef,m,mr,xn,V)
Expand Down

0 comments on commit 2daafd3

Please sign in to comment.