1 function rpack(x, x0, b, t, amp) result(f_rpack)
13 real(r8) :: x, x0, b, t, amp
20 p4 = 2._r8 * dx / b - (dx / b)**2
23 p4 = 1._r8 - 3._r8 * (dx / (t - b))**2 + 2._r8 * (dx &
27 if (x < x0) f_rpack = -f_rpack
28 if (abs(x - x0) > t) f_rpack = 0._r8
real(r8) function rpack(x, x0, b, t, amp)