LCOV - code coverage report
Current view: top level - src/Model/Solid - ExtClassOperators.H (source / functions) Coverage Total Hit
Test: coverage_merged.info Lines: 80.0 % 15 12
Test Date: 2025-04-03 04:02:21 Functions: - 0 0

            Line data    Source code
       1              : AMREX_FORCE_INLINE
       2              : OP_CLASS operator * (const Set::Scalar alpha, const OP_CLASS b)
       3              : {
       4       177889 :     OP_CLASS ret;
       5              : #define X(name) \
       6              :     ret.name = b.name*alpha;
       7       260646 :     OP_VARS
       8              : #undef X
       9       177889 :     return ret;
      10            0 : }    
      11              : 
      12              : AMREX_FORCE_INLINE
      13              : OP_CLASS operator + (const OP_CLASS a, const OP_CLASS b)
      14              : {
      15        24726 :     OP_CLASS ret;
      16              : #define X(name) \
      17              :     ret.name = a.name + b.name;
      18        32943 :     OP_VARS
      19              : #undef X
      20        24726 :     return ret;
      21            0 : }    
      22              : 
      23              : AMREX_FORCE_INLINE
      24              : OP_CLASS operator - (const OP_CLASS a, const OP_CLASS b)
      25              : {
      26         7152 :     OP_CLASS ret;
      27              : #define X(name) \
      28              :     ret.name = a.name - b.name;
      29         9384 :     OP_VARS
      30              : #undef X
      31         7152 :     return ret;
      32            0 : }    
      33              : 
      34              : AMREX_FORCE_INLINE
      35              : bool operator == (const OP_CLASS a, const OP_CLASS b)
      36              : {
      37           40 :     bool ret = true;
      38              : #define X(name) \
      39              :     if (!(a.name == b.name)) ret = false;
      40          160 :     OP_VARS
      41              : #undef X
      42          110 :     return ret;
      43              : }
      44              : 
      45              : #undef OP_VARS
      46              : #undef OP_CLASS
        

Generated by: LCOV version 2.0-1