43 use,
intrinsic :: iso_c_binding, only : c_ptr, c_int
57 Br_d, Bs_d, Bt_d, svv_h1_d, G11_d, G22_d, G33_d, &
58 G12_d, G13_d, G23_d, nelv, lx) &
59 bind(c, name=
'hip_ax_helm_svv_factorized')
60 use,
intrinsic :: iso_c_binding, only : c_ptr, c_int
61 type(c_ptr),
value :: w_d, u_d
62 type(c_ptr),
value :: dx_d, dy_d, dz_d, h1_d
63 type(c_ptr),
value :: Br_d, Bs_d, Bt_d, svv_h1_d
64 type(c_ptr),
value :: G11_d, G22_d, G33_d
65 type(c_ptr),
value :: G12_d, G13_d, G23_d
66 integer(c_int) :: nelv, lx
72 Br_d, Bs_d, Bt_d, svv_h1_d, G11_d, G22_d, G33_d, &
73 G12_d, G13_d, G23_d, nelv, lx) &
74 bind(c, name=
'cuda_ax_helm_svv_factorized')
75 use,
intrinsic :: iso_c_binding, only : c_ptr, c_int
76 type(c_ptr),
value :: w_d, u_d
77 type(c_ptr),
value :: dx_d, dy_d, dz_d, h1_d
78 type(c_ptr),
value :: Br_d, Bs_d, Bt_d, svv_h1_d
79 type(c_ptr),
value :: G11_d, G22_d, G33_d
80 type(c_ptr),
value :: G12_d, G13_d, G23_d
81 integer(c_int) :: nelv, lx
97 type(
mesh_t),
intent(in) :: msh
99 type(
coef_t),
intent(in) :: coef
100 real(kind=
rp),
intent(inout) :: w(xh%lx, xh%ly, xh%lz, msh%nelv)
101 real(kind=
rp),
intent(in) :: u(xh%lx, xh%ly, xh%lz, msh%nelv)
102 type(c_ptr) :: u_d, w_d
109 coef%h1_d, this%svv%Br_d, this%svv%Bs_d, this%svv%Bt_d, &
110 this%svv%h1_d, coef%G11_d, coef%G22_d, coef%G33_d, &
111 coef%G12_d, coef%G13_d, coef%G23_d, &
115 coef%h1_d, this%svv%Br_d, this%svv%Bs_d, this%svv%Bt_d, &
116 this%svv%h1_d, coef%G11_d, coef%G22_d, coef%G33_d, &
117 coef%G12_d, coef%G13_d, coef%G23_d, &
120 call neko_error(
'OPENCL is not implemented for factorized SVV')
124 call device_addcol4(w_d, coef%h2_d, coef%B_d, u_d, coef%dof%size())
void cuda_ax_helm_svv_factorized(void *w, void *u, void *dx, void *dy, void *dz, void *h1, void *Br, void *Bs, void *Bt, void *h1_svv, void *g11, void *g22, void *g33, void *g12, void *g13, void *g23, int *nelv, int *lx)
Return the device pointer for an associated Fortran array.
Device implementation of the factorized SVV Helmholtz operator.
subroutine ax_helm_svv_factorized_device_compute(this, w, u, coef, msh, xh)
Compute the factorized SVV Helmholtz product.
Base type for an SVV Helmholtz operator.
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.
Helmholtz operator carrying a non-owning SVV object.
Device matrix-vector product for a factorized SVV 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.