Skip to content

Commit

Permalink
[ci skip] phase1 auto_diff rates in approx21
Browse files Browse the repository at this point in the history
  • Loading branch information
Eb authored and Eb committed Jun 15, 2024
1 parent a965ec6 commit e4e0704
Show file tree
Hide file tree
Showing 6 changed files with 1,496 additions and 1,241 deletions.
20 changes: 20 additions & 0 deletions chem/public/chem_lib.f90
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,26 @@ function get_mass_excess(nuclides,chem_id) result (mass_excess)
end if

end function

! returns mass excess in MeV
function get_mass_excess_each_component(nuclides,chem_id) result (mass_excess)
use chem_def
type(nuclide_data), intent(in) :: nuclides
integer, intent(in) :: chem_id
real(dp) :: mass_excess
logical :: use_nuclides_mass_excess=.false.

! These should be identical but can have slight ~ulp difference
! due to floating point maths
if(use_nuclides_mass_excess)then
mass_excess = nuclides% mass_excess(chem_id)
else
mass_excess = nuclides% Z(chem_id)*del_Mp + nuclides% N(chem_id)*del_Mn -&
nuclides% binding_energy(chem_id)
end if

end function


function get_Q(nuclides,chem_id) result (q)
use chem_def
Expand Down
Loading

0 comments on commit e4e0704

Please sign in to comment.