34 use,
intrinsic :: iso_c_binding, only: c_ptr, c_int
38 use mpi_f08,
only: mpi_sum, mpi_in_place, mpi_allreduce
46 g21_d, g22_d, g23_d, &
47 g31_d, g32_d, g33_d, &
48 delta_d, nut_d, mult_d, c, eps, n) &
49 bind(c, name =
'hip_sigma_nut_compute')
50 use,
intrinsic :: iso_c_binding, only: c_ptr, c_int
52 type(c_ptr),
value :: g11_d, g12_d, g13_d, &
53 g21_d, g22_d, g23_d, &
54 g31_d, g32_d, g33_d, &
55 delta_d, nut_d, mult_d
63 g21_d, g22_d, g23_d, &
64 g31_d, g32_d, g33_d, &
65 delta_d, nut_d, mult_d, c, eps, n) &
66 bind(c, name =
'cuda_sigma_nut_compute')
67 use,
intrinsic :: iso_c_binding, only: c_ptr, c_int
69 type(c_ptr),
value :: g11_d, g12_d, g13_d, &
70 g21_d, g22_d, g23_d, &
71 g31_d, g32_d, g33_d, &
72 delta_d, nut_d, mult_d
86 g21_d, g22_d, g23_d, &
87 g31_d, g32_d, g33_d, &
88 delta_d, nut_d, mult_d, c, eps, n)
89 type(c_ptr) :: g11_d, g12_d, g13_d, &
90 g21_d, g22_d, g23_d, &
91 g31_d, g32_d, g33_d, &
92 delta_d, nut_d, mult_d
94 real(kind=
rp) :: c, eps
97 g21_d, g22_d, g23_d, &
98 g31_d, g32_d, g33_d, &
99 delta_d, nut_d, mult_d, c, eps, n)
102 g21_d, g22_d, g23_d, &
103 g31_d, g32_d, g33_d, &
104 delta_d, nut_d, mult_d, c, eps, n)
106 call neko_error(
'opencl backend is not supported for device_sigma_nut')
108 call neko_error(
'no device backend configured')
113end module device_sigma_nut
type(mpi_comm) neko_comm
MPI communicator.
type(mpi_datatype) mpi_real_precision
MPI type for working precision of REAL types.
integer pe_size
MPI size of communicator.
subroutine, public device_sigma_nut_compute(g11_d, g12_d, g13_d, g21_d, g22_d, g23_d, g31_d, g32_d, g33_d, delta_d, nut_d, mult_d, c, eps, n)
Compute the eddy viscosity field for the Sigma model indevice.
integer, parameter, public c_rp
integer, parameter, public rp
Global precision used in computations.
void cuda_sigma_nut_compute(void *g11, void *g12, void *g13, void *g21, void *g22, void *g23, void *g31, void *g32, void *g33, void *delta, void *nut, void *mult, real *c, real *eps, int *n)