Skip to content

Commit

Permalink
Modified order of ceh numgrad written to file
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaswittmann committed Jan 10, 2025
1 parent e72b3d2 commit 7a1f224
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/tblite/calculator.F90
Original file line number Diff line number Diff line change
Expand Up @@ -492,13 +492,16 @@ subroutine num_grad_chrg(env, mol, tblite)

! write the numerical gradient to the ceh.charges.numgrad file
call open_file(ich, 'ceh.charges.numgrad', 'w')
do i = 1, 3 ! cartesian axes-wise
write(ich, '(3f12.6)') numgrad(i,:,:)
do i = 1, mol%n
do j = 1, mol%n
do k = 1, 3
write(ich, '(3f12.6)') numgrad(k,j,i)
enddo
enddo
enddo
call close_file(ich)
write(env%unit, '(1x, a)') "CEH gradients written to ceh.charges.numgrad"


end subroutine num_grad_chrg


Expand Down

0 comments on commit 7a1f224

Please sign in to comment.