13 ind_r_d, ind_s_d, ind_t_d, ind_e_d, &
14 n_x_d, n_y_d, n_z_d, h_d, &
15 tau_x_d, tau_y_d, tau_z_d, n_nodes, lx, &
16 kappa, mu_w_d, rho_w_d, g, Pr, z0, z0h_in, bc_type_int, &
18 Ri_b_diagn, L_ob_diagn, utau_diagn, magu_diagn, ti_diagn, &
19 ts_diagn, q_diagn, h_x_idx, h_y_idx, h_z_idx) &
20 bind(c, name =
'hip_richardson_compute')
21 use,
intrinsic :: iso_c_binding, only : c_ptr, c_int
24 type(c_ptr),
value :: u_d, v_d, w_d, temp_d
25 type(c_ptr),
value :: ind_r_d, ind_s_d, ind_t_d, ind_e_d
26 type(c_ptr),
value :: n_x_d, n_y_d, n_z_d, h_d
27 real(c_rp) :: kappa, z0, z0h_in, bc_value, Pr
28 type(c_ptr),
value :: mu_w_d, rho_w_d
30 type(c_ptr),
value :: tau_x_d, tau_y_d, tau_z_d
31 integer(c_int) :: n_nodes, lx, tstep, bc_type_int
32 type(c_ptr),
value :: Ri_b_diagn, L_ob_diagn
33 type(c_ptr),
value :: utau_diagn, magu_diagn
34 type(c_ptr),
value :: ti_diagn, ts_diagn, q_diagn
35 type(c_ptr),
value :: h_x_idx, h_y_idx, h_z_idx
75 ind_r_d, ind_s_d, ind_t_d, ind_e_d, &
76 n_x_d, n_y_d, n_z_d, h_d, tau_x_d, tau_y_d, tau_z_d, &
77 n_nodes, lx, kappa, mu_w_d, rho_w_d, g, Pr, z0, z0h_in, bc_type, &
78 bc_value, tstep, Ri_b_diagn, L_ob_diagn, utau_diagn, &
79 magu_diagn, ti_diagn, ts_diagn, q_diagn, &
80 h_x_idx, h_y_idx, h_z_idx)
81 integer,
intent(in) :: n_nodes, lx, tstep
82 type(c_ptr),
intent(in) :: u_d, v_d, w_d, temp_d
83 type(c_ptr),
intent(in) :: ind_r_d, ind_s_d, ind_t_d, ind_e_d
84 type(c_ptr),
intent(in) :: n_x_d, n_y_d, n_z_d, h_d
85 type(c_ptr),
intent(inout) :: tau_x_d, tau_y_d, tau_z_d
86 type(c_ptr),
intent(in) :: mu_w_d, rho_w_d
87 real(kind=rp),
intent(in) :: kappa, z0, z0h_in, bc_value, pr
89 character(len=*),
intent(in) :: bc_type
90 integer :: bc_type_int
91 type(c_ptr),
value :: ri_b_diagn, l_ob_diagn
92 type(c_ptr),
value :: utau_diagn, magu_diagn
93 type(c_ptr),
value :: ti_diagn, ts_diagn, q_diagn
94 type(c_ptr),
value :: h_x_idx, h_y_idx, h_z_idx
97 select case (trim(adjustl(bc_type)))
103 call neko_error(
"Neumann/Dirichlet bc not specified correctly " // &
104 "(richardson_device)")
109 ind_r_d, ind_s_d, ind_t_d, ind_e_d, &
110 n_x_d, n_y_d, n_z_d, h_d, &
111 tau_x_d, tau_y_d, tau_z_d, n_nodes, &
112 lx, kappa, mu_w_d, rho_w_d, g, pr, z0, z0h_in, &
113 bc_type_int, bc_value, tstep, ri_b_diagn, &
114 l_ob_diagn, utau_diagn, magu_diagn, ti_diagn, &
115 ts_diagn, q_diagn, h_x_idx, h_y_idx, h_z_idx)
118 ind_r_d, ind_s_d, ind_t_d, ind_e_d, &
119 n_x_d, n_y_d, n_z_d, h_d, &
120 tau_x_d, tau_y_d, tau_z_d, n_nodes, &
121 lx, kappa, mu_w_d, rho_w_d, g, pr, z0, z0h_in, &
122 bc_type_int, bc_value, tstep, ri_b_diagn, &
123 l_ob_diagn, utau_diagn, magu_diagn, ti_diagn, &
124 ts_diagn, q_diagn, h_x_idx, h_y_idx, h_z_idx)
126 call neko_error(
"OPENCL is not implemented for the richardson wall model")
128 call neko_error(
'No device backend configured')
subroutine, public richardson_compute_device(u_d, v_d, w_d, temp_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, mu_w_d, rho_w_d, g, pr, z0, z0h_in, bc_type, bc_value, tstep, ri_b_diagn, l_ob_diagn, utau_diagn, magu_diagn, ti_diagn, ts_diagn, q_diagn, h_x_idx, h_y_idx, h_z_idx)
Compute the wall shear stress on device using the rough log-law model.
void cuda_richardson_compute(void *u_d, void *v_d, void *w_d, void *temp_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 *mu_w_d, void *rho_w_d, real *g, real *Pr, real *z0, real *z0h_in, int *bc_type, real *bc_value, int *tstep, void *Ri_b_diagn, void *L_ob_diagn, void *utau_diagn, void *magu_diagn, void *ti_diagn, void *ts_diagn, void *q_diagn, void *h_x_idx, void *h_y_idx, void *h_z_idx)