Wave number beyond which the term is damped below the requested tolerance
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(fourier_term), | intent(in) | :: | term |
Term of the damped pair potential |
||
| real(kind=wp), | intent(in) | :: | tolerance |
Requested relative accuracy |
Reciprocal space cutoff
pure function get_reciprocal_cutoff(term, tolerance) result(kcut) !> Term of the damped pair potential type(fourier_term), intent(in) :: term !> Requested relative accuracy real(wp), intent(in) :: tolerance !> Reciprocal space cutoff real(wp) :: kcut kcut = -log(tolerance) / (term%radius * sin(pi/real(term%alpha, wp))) end function get_reciprocal_cutoff