LCOV - code coverage report
Current view: top level - src/Model/Solid - ExtClassOperators.H (source / functions) Hit Total Coverage
Test: coverage_merged.info Lines: 12 12 100.0 %
Date: 2024-11-18 05:28:54 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      186652 :     OP_CLASS ret;
       5             : #define X(name) \
       6             :     ret.name = b.name*alpha;
       7      269409 :     OP_VARS
       8             : #undef X
       9      186652 :     return ret;
      10             : }    
      11             : 
      12             : AMREX_FORCE_INLINE
      13             : OP_CLASS operator + (const OP_CLASS a, const OP_CLASS b)
      14             : {
      15       31893 :     OP_CLASS ret;
      16             : #define X(name) \
      17             :     ret.name = a.name + b.name;
      18       40110 :     OP_VARS
      19             : #undef X
      20       31893 :     return ret;
      21             : }    
      22             : 
      23             : AMREX_FORCE_INLINE
      24             : OP_CLASS operator - (const OP_CLASS a, const OP_CLASS b)
      25             : {
      26        9280 :     OP_CLASS ret;
      27             : #define X(name) \
      28             :     ret.name = a.name - b.name;
      29       11512 :     OP_VARS
      30             : #undef X
      31        9280 :     return ret;
      32             : }    
      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 1.14