Line data Source code
1 : // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2 : // SPDX-License-Identifier: Apache-2.0
3 :
4 : #ifndef PALACE_LIBCEED_HCURL_33_QF_H
5 : #define PALACE_LIBCEED_HCURL_33_QF_H
6 :
7 : #include "../coeff/coeff_3_qf.h"
8 : #include "utils_33_qf.h"
9 :
10 69724 : CEED_QFUNCTION(f_apply_hcurl_33)(void *__restrict__ ctx, CeedInt Q,
11 : const CeedScalar *const *in, CeedScalar *const *out)
12 : {
13 69724 : const CeedScalar *attr = in[0], *wdetJ = in[0] + Q, *adjJt = in[0] + 2 * Q, *u = in[1];
14 69724 : CeedScalar *v = out[0];
15 :
16 18451004 : CeedPragmaSIMD for (CeedInt i = 0; i < Q; i++)
17 : {
18 18381280 : const CeedScalar u_loc[3] = {u[i + Q * 0], u[i + Q * 1], u[i + Q * 2]};
19 : CeedScalar coeff[9], adjJt_loc[9], v_loc[3];
20 18381280 : CoeffUnpack3((const CeedIntScalar *)ctx, (CeedInt)attr[i], coeff);
21 18381280 : MatUnpack33(adjJt + i, Q, adjJt_loc);
22 : MultAtBCx33(adjJt_loc, coeff, adjJt_loc, u_loc, v_loc);
23 :
24 18381280 : v[i + Q * 0] = wdetJ[i] * v_loc[0];
25 18381280 : v[i + Q * 1] = wdetJ[i] * v_loc[1];
26 18381280 : v[i + Q * 2] = wdetJ[i] * v_loc[2];
27 : }
28 69724 : return 0;
29 : }
30 :
31 : #endif // PALACE_LIBCEED_HCURL_33_QF_H
|