4 use,
intrinsic :: iso_c_binding, only : c_ptr
12 ind_r_d, ind_s_d, ind_t_d, ind_e_d, &
13 n_x_d, n_y_d, n_z_d, h_d, &
14 tau_x_d, tau_y_d, tau_z_d, n_nodes, lx, &
15 kappa, rho_w_d, B, z0, tstep) &
16 bind(c, name =
'hip_rough_log_law_compute')
17 use,
intrinsic :: iso_c_binding, only : c_ptr, c_int
20 type(c_ptr),
value :: u_d, v_d, w_d
21 type(c_ptr),
value :: ind_r_d, ind_s_d, ind_t_d, ind_e_d
22 type(c_ptr),
value :: n_x_d, n_y_d, n_z_d, h_d
23 real(c_rp) :: kappa, B, z0
24 type(c_ptr),
value :: rho_w_d
25 type(c_ptr),
value :: tau_x_d, tau_y_d, tau_z_d
26 integer(c_int) :: n_nodes, lx, tstep
32 ind_r_d, ind_s_d, ind_t_d, ind_e_d, &
33 n_x_d, n_y_d, n_z_d, h_d, &
34 tau_x_d, tau_y_d, tau_z_d, n_nodes, lx, &
35 kappa, rho_w_d, B, z0, tstep) &
36 bind(c, name =
'cuda_rough_log_law_compute')
37 use,
intrinsic :: iso_c_binding, only : c_ptr, c_int
40 type(c_ptr),
value :: u_d, v_d, w_d
41 type(c_ptr),
value :: ind_r_d, ind_s_d, ind_t_d, ind_e_d
42 type(c_ptr),
value :: n_x_d, n_y_d, n_z_d, h_d
43 real(c_rp) :: kappa, B, z0
44 type(c_ptr),
value :: rho_w_d
45 type(c_ptr),
value :: tau_x_d, tau_y_d, tau_z_d
46 integer(c_int) :: n_nodes, lx, tstep
58 ind_r_d, ind_s_d, ind_t_d, ind_e_d, &
59 n_x_d, n_y_d, n_z_d, h_d, tau_x_d, tau_y_d, tau_z_d, &
60 n_nodes, lx, kappa, rho_w_d, B, z0, tstep)
61 integer,
intent(in) :: n_nodes, lx, tstep
62 type(c_ptr),
intent(in) :: u_d, v_d, w_d
63 type(c_ptr),
intent(in) :: ind_r_d, ind_s_d, ind_t_d, ind_e_d
64 type(c_ptr),
intent(in) :: n_x_d, n_y_d, n_z_d, h_d
65 type(c_ptr),
intent(inout) :: tau_x_d, tau_y_d, tau_z_d
66 type(c_ptr),
intent(in) :: rho_w_d
67 real(kind=rp),
intent(in) :: kappa, b, z0
71 ind_r_d, ind_s_d, ind_t_d, ind_e_d, &
72 n_x_d, n_y_d, n_z_d, h_d, &
73 tau_x_d, tau_y_d, tau_z_d, n_nodes, lx, &
74 kappa, rho_w_d, b, z0, tstep)
77 ind_r_d, ind_s_d, ind_t_d, ind_e_d, &
78 n_x_d, n_y_d, n_z_d, h_d, &
79 tau_x_d, tau_y_d, tau_z_d, n_nodes, lx, &
80 kappa, rho_w_d, b, z0, tstep)
82 call neko_error(
"OPENCL is not implemented for the rough log-law model")
84 call neko_error(
'No device backend configured')
integer, parameter, public c_rp
integer, parameter, public rp
Global precision used in computations.
Implements the device kernel for the rough_log_law_t type.
subroutine, public rough_log_law_compute_device(u_d, v_d, w_d, ind_r_d, ind_s_d, ind_t_d, ind_e_d, n_x_d, n_y_d, n_z_d, h_d, tau_x_d, tau_y_d, tau_z_d, n_nodes, lx, kappa, rho_w_d, b, z0, tstep)
Compute the wall shear stress on device using the rough log-law model.
void cuda_rough_log_law_compute(void *u_d, void *v_d, void *w_d, void *ind_r_d, void *ind_s_d, void *ind_t_d, void *ind_e_d, void *n_x_d, void *n_y_d, void *n_z_d, void *h_d, void *tau_x_d, void *tau_y_d, void *tau_z_d, int *n_nodes, int *lx, real *kappa, void *rho_w_d, real *B, real *z0, int *tstep)