Skip to content

Commit

Permalink
Fix degradation calculate if energy is small
Browse files Browse the repository at this point in the history
  • Loading branch information
numaryu committed Sep 27, 2024
1 parent 4e3833b commit 1b21586
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/class_orbital.f90
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ recursive subroutine calculate_degradation(self, ngen_in)
nenergy1_max = egrid%grid_number(energy1_max)
nenergy2_max = egrid%grid_number(energy2_max)

if (energy2_max < minval(self%energy_triplet)) cycle

! i: index of T2
do i = nenergy2_max + 1, nenergy_max
energy2 = egrid%val(i)
Expand Down

0 comments on commit 1b21586

Please sign in to comment.