25 use,
intrinsic :: iso_fortran_env
40 integer,
parameter :: mask_n = 201
41 real(real64) :: mask_x(mask_n), mask_y(mask_n)
57 type(spline_t),
intent(inout) :: spl
58 real(real64),
intent(in) :: threshold
59 real(real64),
optional,
intent(in) :: fs(2)
60 real(real64),
optional,
intent(in) :: rs(2)
62 type(spline_t) :: splw
84 type(spline_t),
intent(inout) :: spl
85 integer,
intent(in) :: l
86 real(real64),
intent(in) :: qmax, alpha, beta_fs, rcut, beta_rs
87 real(real64),
intent(in) :: threshold
89 type(spline_t) :: splw
111 iunit =
io_open(trim(
conf%share)//
"/filter_mask.data", action=
'read', status=
'old', die=.
true.)
114 read(iunit, *) mask_x(i), mask_y(i)
125 type(spline_t),
intent(inout) :: spl
126 integer,
intent(in) :: l
127 real(real64),
intent(in) :: rmax
128 real(real64),
intent(in) :: qmax
129 real(real64),
intent(in) :: alpha
130 real(real64),
intent(in) :: gamma
131 real(real64),
intent(in) :: threshold
134 real(real64) :: local_mask_x(mask_n), rcut, beta
144 local_mask_x = mask_x*rcut
145 call spline_fit(mask_n, local_mask_x, mask_y, mask)
155 beta =
log(1.e5_real64)/(alpha -
m_one)**2
Some operations may be done for one spline-function, or for an array of them.
double log(double __x) __attribute__((__nothrow__
real(real64), parameter, public m_two
real(real64), parameter, public m_four
real(real64), parameter, public m_pi
some mathematical constants
real(real64), parameter, public m_epsilon
type(conf_t), public conf
Global instance of Octopus configuration.
real(real64), parameter, public m_one
subroutine, public io_close(iunit, grp)
integer function, public io_open(file, namespace, action, status, form, position, die, recl, grp)
subroutine, public spline_filter_mask(spl, l, rmax, qmax, alpha, gamma, threshold)
subroutine, public spline_filter_ft(spl, threshold, fs, rs)
The function spline_filter_ft permits to filter out high-values of a given spline function,...
subroutine, public spline_filter_mask_init()
subroutine, public spline_filter_bessel(spl, l, qmax, alpha, beta_fs, rcut, beta_rs, threshold)
subroutine, public spline_fit(nrc, rofi, ffit, spl, threshold)
subroutine, public spline_3dft(spl, splw, threshold, gmax)
subroutine, public spline_besselft(spl, splw, l, threshold, gmax)
subroutine, public spline_cut(spl, cutoff, beta, threshold)
subroutine, public spline_div(spla, splb, threshold)
Returns the values of spla divided by the values of splb.
subroutine, public spline_times(a, spl, threshold)
subroutine, public spline_mult(spla, splb, threshold)
the basic spline datatype