Evaluator by storage index
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ps_t), | intent(in) | :: | ps | |||
integer, | intent(in) | :: | i | |||
real(kind=dp), | intent(in) | :: | r |
function ps_Potential_Value(ps,i,r) result(val)
type(ps_t), intent(in) :: ps
integer, intent(in) :: i
real(dp), intent(in) :: r
real(dp) :: val
call check_index(i,size(ps%sl_table),"SL pot")
val = ps_GetValue(ps%sl_table(i)%p%V,r)
end function ps_Potential_Value