LCOV - code coverage report
Current view: top level - fem/qfunctions/1 - h1_1_qf.h (source / functions) Coverage Total Hit
Test: Palace Coverage Report Lines: 100.0 % 7 7
Test Date: 2025-10-23 22:45:05 Functions: 100.0 % 1 1
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_H1_1_QF_H
       5              : #define PALACE_LIBCEED_H1_1_QF_H
       6              : 
       7              : #include "../coeff/coeff_1_qf.h"
       8              : 
       9        14849 : CEED_QFUNCTION(f_apply_h1_1)(void *__restrict__ ctx, CeedInt Q, const CeedScalar *const *in,
      10              :                              CeedScalar *const *out)
      11              : {
      12        14849 :   const CeedScalar *attr = in[0], *wdetJ = in[0] + Q, *u = in[1];
      13        14849 :   CeedScalar *v = out[0];
      14              : 
      15      2777433 :   CeedPragmaSIMD for (CeedInt i = 0; i < Q; i++)
      16              :   {
      17      2762584 :     const CeedScalar coeff = CoeffUnpack1((const CeedIntScalar *)ctx, (CeedInt)attr[i]);
      18              : 
      19      2762584 :     v[i] = coeff * wdetJ[i] * u[i];
      20              :   }
      21        14849 :   return 0;
      22              : }
      23              : 
      24              : #endif  // PALACE_LIBCEED_H1_1_QF_H
        

Generated by: LCOV version 2.0-1