libMesh/libmesh: coverage diff

Base 03bcc7 Head #4285 76b072
Total Total +/- New
Rate 65.03% 65.02% -0.01% 0.00%
Hits 76915 76915 - 0
Misses 41361 41371 +10 10
Filename Stmts Miss Cover
src/utils/point_locator_base.C +10 +10 -9.63%
TOTAL +10 +10 -0.01%
code
coverage unchanged
code
coverage increased
code
coverage decreased
+
line added or modified

src/utils/point_locator_base.C

156  
157  
158  
159 +
160  
161  
162  
163 +
164  
165  
166  
167  
168 +
169 +
170  
171 +
172  
173 +
174 +
175 +
176 +
177  
178  
179 +
180  
181  
182  


#ifndef NDEBUG
void PointLocatorBase::libmesh_assert_valid_point_locator ()
{
  // We might only have been built with TREE_LOCAL_ELEMENTS as an
  // option; let's just check local elements to be safe.
  for (const Elem * elem : this->_mesh.active_local_element_ptr_range())
    {
      // For non-Lagrange mappings, we might have nodes that are
      // really control points, not contained in the element they
      // define; we can only safely check containment of vertices.
      auto range = make_range(0u, (elem->mapping_type() == LAGRANGE_MAP) ?
                                 elem->n_nodes() : elem->n_vertices());

        for (auto n : range)
          {
            const Node & node = elem->node_ref(n);
            std::set<const Elem *> candidate_elements;
            this->operator()(node, candidate_elements);
            libmesh_assert(candidate_elements.count(elem));
          }
    }
}
#endif

} // namespace libMesh