Skip to content

Commit

Permalink
Patch user input to mopac to ensure gradient printout (#147)
Browse files Browse the repository at this point in the history
- also warn user that input has been patched
  • Loading branch information
awvwgk authored Mar 16, 2020
1 parent dfeae72 commit 830e466
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/extern/mopac.f90
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ subroutine checkMopac(env)

! check for the input line
if (allocated(ext_mopac%input_string)) then
if (index(ext_mopac%input_string,'grad') == 0) then
call env%warning('added grad keyword to mopac input', source)
ext_mopac%input_string = ext_mopac%input_string //' grad'
end if
if (index(ext_mopac%input_string,'charge=') == 0) then
write(chdum,'(i5)') ichrg
! add total charge
Expand Down

0 comments on commit 830e466

Please sign in to comment.