LCOV - code coverage report
Current view: top level - fem/qfunctions/32 - hcurlmass_32_qf.h (source / functions) Coverage Total Hit
Test: Palace Coverage Report Lines: 0.0 % 13 0
Test Date: 2025-10-23 22:45:05 Functions: 0.0 % 1 0
Legend: Lines: hit not hit

            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_MASS_32_QF_H
       5              : #define PALACE_LIBCEED_HCURL_MASS_32_QF_H
       6              : 
       7              : #include "../coeff/coeff_1_qf.h"
       8              : #include "../coeff/coeff_3_qf.h"
       9              : #include "utils_32_qf.h"
      10              : 
      11            0 : CEED_QFUNCTION(f_apply_hcurlmass_32)(void *__restrict__ ctx, CeedInt Q,
      12              :                                      const CeedScalar *const *in, CeedScalar *const *out)
      13              : {
      14            0 :   const CeedScalar *attr = in[0], *wdetJ = in[0] + Q, *adjJt = in[0] + 2 * Q, *u = in[1],
      15            0 :                    *gradu = in[2];
      16            0 :   CeedScalar *__restrict__ v = out[0], *__restrict__ gradv = out[1];
      17              : 
      18            0 :   CeedPragmaSIMD for (CeedInt i = 0; i < Q; i++)
      19              :   {
      20              :     {
      21            0 :       const CeedScalar coeff = CoeffUnpack1((const CeedIntScalar *)ctx, (CeedInt)attr[i]);
      22              : 
      23            0 :       v[i] = coeff * wdetJ[i] * u[i];
      24              :     }
      25              :     {
      26            0 :       const CeedScalar u_loc[2] = {gradu[i + Q * 0], gradu[i + Q * 1]};
      27              :       CeedScalar coeff[9], adjJt_loc[6], v_loc[2];
      28            0 :       CoeffUnpack3(CoeffPairSecond<1>((const CeedIntScalar *)ctx), (CeedInt)attr[i], coeff);
      29            0 :       MatUnpack32(adjJt + i, Q, adjJt_loc);
      30              :       MultAtBCx32(adjJt_loc, coeff, adjJt_loc, u_loc, v_loc);
      31              : 
      32            0 :       gradv[i + Q * 0] = wdetJ[i] * v_loc[0];
      33            0 :       gradv[i + Q * 1] = wdetJ[i] * v_loc[1];
      34              :     }
      35              :   }
      36            0 :   return 0;
      37              : }
      38              : 
      39              : #endif  // PALACE_LIBCEED_HCURL_MASS_32_QF_H
        

Generated by: LCOV version 2.0-1