36 use,
intrinsic :: iso_c_binding, only: c_ptr
56 type(c_ptr),
intent(inout) :: x
57 real(kind=
rp),
intent(in) :: edge0, edge1
58 integer,
intent(in) :: n
68 "Smooth step function not implemented for the current device.")
75 type(c_ptr),
intent(inout) :: x
76 real(kind=
rp),
intent(in) :: x_step, value0, value1
77 integer,
intent(in) :: n
87 "Step function not implemented for the current device.")
94 type(c_ptr),
intent(inout) :: x
95 real(kind=
rp),
intent(in) :: k_0, k_1, q
96 integer,
intent(in) :: n
102#elif HAVE_OPENCL == 1
106 "Permeability function not implemented for the current device.")
Cuda interface binding for mappings.
Hip interface binding for mappings.
Device implementations of the mapping functions.
subroutine permeability_device(x, k_0, k_1, q, n)
Apply a permeability function to a scalar.
subroutine step_function_device(x, x_step, value0, value1, n)
Apply a step function to a scalar.
subroutine smooth_step_device(x, edge0, edge1, n)
Apply a smooth step function to a scalar.
integer, parameter, public c_rp
integer, parameter, public rp
Global precision used in computations.
OpenCL interface binding for mappings.