Skip to content

Commit

Permalink
Merge pull request sissaschool#93 from kousuke-nakano/devel-#92
Browse files Browse the repository at this point in the history
Solved a corner case in makefort10.f90.
  • Loading branch information
kousuke-nakano authored Jun 27, 2024
2 parents 18bc799 + 880f8ce commit def81ed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/a_makefort10/makefort10.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1474,9 +1474,10 @@ subroutine write_fort10
write (ufort10, *) '# Ion coordinates'
do i1 = 1, ntotatoms
zetaw = zeta(1, i1)
if ((int(zeta(1, i1)) .ne. 1 .and. int(zeta(1, i1)) .ne. 2 &
.and. int(zeta(1, i1)) .ne. 3 .and. int(zeta(1, i1)) .ne. 4) &
.or. nopseudo) then
! K.N. on 27 June. 2024. Why .ge. 5? because for zeta .le. 4., there are pseudo potentials that
! do not remove any core electrons. In such a case, zeta and zetaw should be different to tell
! turborvb that valence electrons = atomic number for that atom, but a pseudo potential is assgined.
if ((int(zeta(1, i1)) .ge. 5) .or. nopseudo) then
zetaw = int(zeta(1, i1))
end if
write (ufort10, '(1f6.0,1f8.2,3f22.14)') zeta(2, i1), zetaw, (rion(j, i1), j=1, 3)
Expand Down

0 comments on commit def81ed

Please sign in to comment.