1 function ddrpack(x, x0, b, t, amp) result(f_ddrpack)
12 real(r8) :: x, x0, b, t, amp
22 p4 = -6._r8 / ((t - b)**2) + 12._r8 * dx / (t - b)**3
25 if (x < x0) f_ddrpack = -f_ddrpack
26 if (abs(x - x0) > t) f_ddrpack = 0._r8
real(r8) function ddrpack(x, x0, b, t, amp)