LCOV - code coverage report
Current view: top level - core - MeshScheme.cpp (source / functions) Hit Total Coverage
Test: coverage_sk.info Lines: 11 11 100.0 %
Date: 2020-07-01 15:24:36 Functions: 3 3 100.0 %
Branches: 19 32 59.4 %

           Branch data     Line data    Source code
       1                 :            : #include "meshkit/MeshScheme.hpp"
       2                 :            : #include "meshkit/ModelEnt.hpp"
       3                 :            : #include "meshkit/Types.hpp"
       4                 :            : 
       5                 :            : namespace MeshKit 
       6                 :            : {
       7                 :            : 
       8                 :         13 : void MeshScheme::constrain_even() 
       9                 :            : {
      10                 :            :     // constrain all edges to be even
      11                 :            : 
      12 [ +  - ][ +  - ]:         29 :   for (MEntSelection::iterator sit = mentSelection.begin(); sit != mentSelection.end(); sit++)
                 [ +  + ]
      13                 :            :   {
      14 [ +  - ][ +  - ]:         16 :     if ( (*sit).first->get_meshed_state()>=COMPLETE_MESH)
                 [ +  + ]
      15                 :          1 :       continue;
      16         [ +  - ]:         15 :     MEntVector edges;
      17 [ +  - ][ +  - ]:         15 :     (*sit).first->get_adjacencies(1, edges);
      18                 :            : 
      19 [ +  - ][ +  - ]:         77 :     for (MEntVector::iterator vit = edges.begin(); vit != edges.end(); vit++)
                 [ +  + ]
      20 [ +  - ][ +  - ]:         62 :       (*vit)->constrain_even(true);
      21                 :         15 :   }
      22                 :         13 : }
      23                 :            : 
      24 [ +  - ][ +  - ]:        156 : } // namespace MeshKit

Generated by: LCOV version 1.11