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_H1_BUILD_1_QF_H
5 : #define PALACE_LIBCEED_H1_BUILD_1_QF_H
6 :
7 : #include "../coeff/coeff_1_qf.h"
8 :
9 0 : CEED_QFUNCTION(f_build_h1_1)(void *__restrict__ ctx, CeedInt Q, const CeedScalar *const *in,
10 : CeedScalar *const *out)
11 : {
12 0 : const CeedScalar *attr = in[0], *wdetJ = in[0] + Q;
13 0 : CeedScalar *qd = out[0];
14 :
15 0 : CeedPragmaSIMD for (CeedInt i = 0; i < Q; i++)
16 : {
17 0 : const CeedScalar coeff = CoeffUnpack1((const CeedIntScalar *)ctx, (CeedInt)attr[i]);
18 :
19 0 : qd[i] = coeff * wdetJ[i];
20 : }
21 0 : return 0;
22 : }
23 :
24 : #endif // PALACE_LIBCEED_H1_BUILD_1_QF_H
|