43 use,
intrinsic :: iso_c_binding, only : c_ptr, c_int
49 procedure, pass(this) :: compute_vector => &
56 dx_d, dy_d, dz_d, dxt_d, dyt_d, dzt_d,&
57 h1_d, drdx_d, drdy_d, drdz_d, &
58 dsdx_d, dsdy_d, dsdz_d, &
59 dtdx_d, dtdy_d, dtdz_d, jacinv_d, weight3_d, nelv, lx) &
60 bind(c, name=
'hip_ax_helm_stress_vector')
61 use,
intrinsic :: iso_c_binding
62 type(c_ptr),
value :: au_d, av_d, aw_d
63 type(c_ptr),
value :: u_d, v_d, w_d
64 type(c_ptr),
value :: dx_d, dy_d, dz_d
65 type(c_ptr),
value :: dxt_d, dyt_d, dzt_d
66 type(c_ptr),
value :: h1_d
67 type(c_ptr),
value :: drdx_d, drdy_d, drdz_d
68 type(c_ptr),
value :: dsdx_d, dsdy_d, dsdz_d
69 type(c_ptr),
value :: dtdx_d, dtdy_d, dtdz_d
70 type(c_ptr),
value :: jacinv_d, weight3_d
71 integer(c_int) :: nelv, lx
77 v_d, w_d, h2_d, B_d, n) &
78 bind(c, name=
'hip_ax_helm_stress_vector_part2')
79 use,
intrinsic :: iso_c_binding
80 type(c_ptr),
value :: au_d, av_d, aw_d
81 type(c_ptr),
value :: u_d, v_d, w_d
82 type(c_ptr),
value :: h2_d, B_d
90 dx_d, dy_d, dz_d, dxt_d, dyt_d, dzt_d,&
91 h1_d, drdx_d, drdy_d, drdz_d, &
92 dsdx_d, dsdy_d, dsdz_d, &
93 dtdx_d, dtdy_d, dtdz_d, jacinv_d, weight3_d, nelv, lx) &
94 bind(c, name=
'cuda_ax_helm_stress_vector')
95 use,
intrinsic :: iso_c_binding
96 type(c_ptr),
value :: au_d, av_d, aw_d
97 type(c_ptr),
value :: u_d, v_d, w_d
98 type(c_ptr),
value :: dx_d, dy_d, dz_d
99 type(c_ptr),
value :: dxt_d, dyt_d, dzt_d
100 type(c_ptr),
value :: h1_d
101 type(c_ptr),
value :: drdx_d, drdy_d, drdz_d
102 type(c_ptr),
value :: dsdx_d, dsdy_d, dsdz_d
103 type(c_ptr),
value :: dtdx_d, dtdy_d, dtdz_d
104 type(c_ptr),
value :: jacinv_d, weight3_d
105 integer(c_int) :: nelv, lx
111 u_d, v_d, w_d, h2_d, B_d, n) &
112 bind(c, name=
'cuda_ax_helm_stress_vector_part2')
113 use,
intrinsic :: iso_c_binding
114 type(c_ptr),
value :: au_d, av_d, aw_d
115 type(c_ptr),
value :: u_d, v_d, w_d
116 type(c_ptr),
value :: h2_d, B_d
124 dx_d, dy_d, dz_d, dxt_d, dyt_d, dzt_d,&
125 h1_d, drdx_d, drdy_d, drdz_d, &
126 dsdx_d, dsdy_d, dsdz_d, &
127 dtdx_d, dtdy_d, dtdz_d, jacinv_d, weight3_d, nelv, lx) &
128 bind(c, name=
'opencl_ax_helm_stress_vector')
129 use,
intrinsic :: iso_c_binding
130 type(c_ptr),
value :: au_d, av_d, aw_d
131 type(c_ptr),
value :: u_d, v_d, w_d
132 type(c_ptr),
value :: dx_d, dy_d, dz_d
133 type(c_ptr),
value :: dxt_d, dyt_d, dzt_d
134 type(c_ptr),
value :: h1_d
135 type(c_ptr),
value :: drdx_d, drdy_d, drdz_d
136 type(c_ptr),
value :: dsdx_d, dsdy_d, dsdz_d
137 type(c_ptr),
value :: dtdx_d, dtdy_d, dtdz_d
138 type(c_ptr),
value :: jacinv_d, weight3_d
139 integer(c_int) :: nelv, lx
145 u_d, v_d, w_d, h2_d, B_d, n) &
146 bind(c, name=
'opencl_ax_helm_stress_vector_part2')
147 use,
intrinsic :: iso_c_binding
148 type(c_ptr),
value :: au_d, av_d, aw_d
149 type(c_ptr),
value :: u_d, v_d, w_d
150 type(c_ptr),
value :: h2_d, B_d
159 u, v, w, coef, msh, Xh)
161 type(
space_t),
intent(in) :: Xh
162 type(
mesh_t),
intent(in) :: msh
163 type(
coef_t),
intent(in) :: coef
164 real(kind=
rp),
intent(inout) :: au(xh%lx, xh%ly, xh%lz, msh%nelv)
165 real(kind=
rp),
intent(inout) :: av(xh%lx, xh%ly, xh%lz, msh%nelv)
166 real(kind=
rp),
intent(inout) :: aw(xh%lx, xh%ly, xh%lz, msh%nelv)
167 real(kind=
rp),
intent(in) :: u(xh%lx, xh%ly, xh%lz, msh%nelv)
168 real(kind=
rp),
intent(in) :: v(xh%lx, xh%ly, xh%lz, msh%nelv)
169 real(kind=
rp),
intent(in) :: w(xh%lx, xh%ly, xh%lz, msh%nelv)
170 type(c_ptr) :: u_d, v_d, w_d
171 type(c_ptr) :: au_d, av_d, aw_d
183 xh%dx_d, xh%dy_d, xh%dz_d, xh%dxt_d, xh%dyt_d, xh%dzt_d, coef%h1_d, &
184 coef%drdx_d, coef%drdy_d, coef%drdz_d, &
185 coef%dsdx_d, coef%dsdy_d, coef%dsdz_d, &
186 coef%dtdx_d, coef%dtdy_d, coef%dtdz_d, &
187 coef%jacinv_d, xh%w3_d, msh%nelv, xh%lx)
190 xh%dx_d, xh%dy_d, xh%dz_d, xh%dxt_d, xh%dyt_d, xh%dzt_d, coef%h1_d, &
191 coef%drdx_d, coef%drdy_d, coef%drdz_d, &
192 coef%dsdx_d, coef%dsdy_d, coef%dsdz_d, &
193 coef%dtdx_d, coef%dtdy_d, coef%dtdz_d, &
194 coef%jacinv_d, xh%w3_d, msh%nelv, xh%lx)
197 xh%dx_d, xh%dy_d, xh%dz_d, xh%dxt_d, xh%dyt_d, xh%dzt_d, coef%h1_d, &
198 coef%drdx_d, coef%drdy_d, coef%drdz_d, &
199 coef%dsdx_d, coef%dsdy_d, coef%dsdz_d, &
200 coef%dtdx_d, coef%dtdy_d, coef%dtdz_d, &
201 coef%jacinv_d, xh%w3_d, msh%nelv, xh%lx)
203 call neko_error(
'Stress formulation Ax is not implemented for Metal')
209 coef%h2_d, coef%B_d, coef%dof%size())
212 coef%h2_d, coef%B_d, coef%dof%size())
215 w_d, coef%h2_d, coef%B_d, coef%dof%size())
217 call neko_error(
'Stress formulation Ax is not implemented for Metal')
void opencl_ax_helm_stress_vector(void *au, void *av, void *aw, void *u, void *v, void *w, void *dx, void *dy, void *dz, void *dxt, void *dyt, void *dzt, void *h1, void *drdx, void *drdy, void *drdz, void *dsdx, void *dsdy, void *dsdz, void *dtdx, void *dtdy, void *dtdz, void *jacinv, void *w3, int *nelv, int *lx)
void opencl_ax_helm_stress_vector_part2(void *au, void *av, void *aw, void *u, void *v, void *w, void *h2, void *B, int *n)
void cuda_ax_helm_stress_vector(void *au, void *av, void *aw, void *u, void *v, void *w, void *dx, void *dy, void *dz, void *dxt, void *dyt, void *dzt, void *h1, void *drdx, void *drdy, void *drdz, void *dsdx, void *dsdy, void *dsdz, void *dtdx, void *dtdy, void *dtdz, void *jacinv, void *w3, int *nelv, int *lx)
void cuda_ax_helm_stress_vector_part2(void *au, void *av, void *aw, void *u, void *v, void *w, void *h2, void *B, int *n)
Return the device pointer for an associated Fortran array.
subroutine ax_helm_full_device_compute_vector(this, au, av, aw, u, v, w, coef, msh, xh)
subroutine, public device_addcol4(a_d, b_d, c_d, d_d, n, strm)
Returns .
Device abstraction, common interface for various accelerators.
integer, parameter, public rp
Global precision used in computations.
Defines a function space.
Matrix-vector product for a Helmholtz problem.
Coefficients defined on a given (mesh, ) tuple. Arrays use indices (i,j,k,e): element e,...
The function space for the SEM solution fields.