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
80 g21_d, g22_d, g23_d, &
81 g31_d, g32_d, g33_d, &
82 delta_d, nut_d, mult_d, c, eps, n) &
83 bind(c, name =
'opencl_sigma_nut_compute')
84 use,
intrinsic :: iso_c_binding, only : c_ptr, c_int
86 type(c_ptr),
value :: g11_d, g12_d, g13_d, &
87 g21_d, g22_d, g23_d, &
88 g31_d, g32_d, g33_d, &
89 delta_d, nut_d, mult_d
96 subroutine metal_sigma_nut_compute(g11_d, g12_d, g13_d, &
97 g21_d, g22_d, g23_d, &
98 g31_d, g32_d, g33_d, &
99 delta_d, nut_d, mult_d, c, eps, n) &
100 bind(c, name =
'metal_sigma_nut_compute')
101 use,
intrinsic :: iso_c_binding, only : c_ptr, c_int
103 type(c_ptr),
value :: g11_d, g12_d, g13_d, &
104 g21_d, g22_d, g23_d, &
105 g31_d, g32_d, g33_d, &
106 delta_d, nut_d, mult_d
109 end subroutine metal_sigma_nut_compute
119 g21_d, g22_d, g23_d, &
120 g31_d, g32_d, g33_d, &
121 delta_d, nut_d, mult_d, c, eps, n)
122 type(c_ptr) :: g11_d, g12_d, g13_d, &
123 g21_d, g22_d, g23_d, &
124 g31_d, g32_d, g33_d, &
125 delta_d, nut_d, mult_d
127 real(kind=
rp) :: c, eps
130 g21_d, g22_d, g23_d, &
131 g31_d, g32_d, g33_d, &
132 delta_d, nut_d, mult_d, c, eps, n)
135 g21_d, g22_d, g23_d, &
136 g31_d, g32_d, g33_d, &
137 delta_d, nut_d, mult_d, c, eps, n)
140 g21_d, g22_d, g23_d, &
141 g31_d, g32_d, g33_d, &
142 delta_d, nut_d, mult_d, c, eps, n)
144 call metal_sigma_nut_compute(g11_d, g12_d, g13_d, &
145 g21_d, g22_d, g23_d, &
146 g31_d, g32_d, g33_d, &
147 delta_d, nut_d, mult_d, c, eps, n)
149 call neko_error(
'no device backend configured')
type(mpi_datatype), public mpi_real_precision
MPI type for working precision of REAL types.
integer, public pe_size
MPI size of communicator.
type(mpi_comm), public neko_comm
MPI 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 opencl_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)
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)