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_COEFF_3_QF_H
5 : #define PALACE_LIBCEED_COEFF_3_QF_H
6 :
7 : #include "coeff_qf.h"
8 :
9 : CEED_QFUNCTION_HELPER void CoeffUnpack3(const CeedIntScalar *ctx, const CeedInt attr,
10 : CeedScalar coeff[9])
11 : {
12 73405904 : const CeedInt k = (NumAttr(ctx) > 0) ? AttrMat(ctx)[attr - 1].first : 0;
13 : const CeedIntScalar *mat_coeff = MatCoeff(ctx);
14 73474928 : coeff[0] = mat_coeff[9 * k + 0].second;
15 73474928 : coeff[1] = mat_coeff[9 * k + 1].second;
16 73474928 : coeff[2] = mat_coeff[9 * k + 2].second;
17 73474928 : coeff[3] = mat_coeff[9 * k + 3].second;
18 73474928 : coeff[4] = mat_coeff[9 * k + 4].second;
19 73474928 : coeff[5] = mat_coeff[9 * k + 5].second;
20 73474928 : coeff[6] = mat_coeff[9 * k + 6].second;
21 73474928 : coeff[7] = mat_coeff[9 * k + 7].second;
22 73474928 : coeff[8] = mat_coeff[9 * k + 8].second;
23 : }
24 :
25 : #endif // PALACE_LIBCEED_COEFF_3_QF_H
|