Skip to content

Commit

Permalink
Merge pull request #236 from openmopac/valence0-bugs
Browse files Browse the repository at this point in the history
Fix a few zero valence electron bugs
  • Loading branch information
godotalgorithm authored Dec 8, 2024
2 parents 490725e + 10a6a7f commit f444159
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/output/writmo.F90
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,13 @@ subroutine writmo
end if
sum = dumy(1) ! Dummy operation - to use dumy
end if
else ! make sure kchrge is defined, even with no valence electrons
sum = 0.D0
do i = 1, numat
l = nat(i)
sum = sum + tore(l)
end do
kchrge = nint(sum)
end if
if (norbs > 0) then
if (index(keywrd,' FOCK') /= 0) then
Expand Down Expand Up @@ -1072,7 +1079,7 @@ subroutine writmo
if (abs(solv_energy) > 1.d-1) &
write (iwrite, '( 10X,''SOLVATION ENERGY ='',F17.5,'' EV'' )') solv_energy
end if
if (abs(ediel) > 1.d-5) then
if (iseps) then
write (iwrite, '( 10X,''DIELECTRIC ENERGY ='',F17.5,'' EV'' )') ediel
end if
if (Abs (pressure) > 1.d-4) then
Expand Down

0 comments on commit f444159

Please sign in to comment.