Skip to content

Commit 496b3ef

Browse files
committed
Remove bad debug check
1 parent d306f68 commit 496b3ef

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

src/numerics/static_condensation.C

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -476,36 +476,14 @@ void StaticCondensation::add_matrix(const DenseMatrix<Number> & dm,
476476
libmesh_assert(_current_elem_id != DofObject::invalid_id);
477477
auto & local_data = libmesh_map_find(_elem_to_local_data, _current_elem_id);
478478
EigenMatrix * mat;
479-
#ifdef DEBUG
480-
std::vector<dof_id_type> local_to_global_reduced_indices;
481-
for (const auto & var_reduced_space_indices : local_data.reduced_space_indices)
482-
local_to_global_reduced_indices.insert(local_to_global_reduced_indices.end(),
483-
var_reduced_space_indices.begin(),
484-
var_reduced_space_indices.end());
485-
#endif
486-
487-
auto info_from_index = [&local_data
488-
#ifdef DEBUG
489-
,
490-
&local_to_global_reduced_indices,
491-
this
492-
#endif
493-
](const auto global_index) {
479+
480+
auto info_from_index = [&local_data](const auto global_index) {
494481
auto index_it = local_data.condensed_global_to_local_map.find(global_index);
495482
const bool index_is_condensed = index_it != local_data.condensed_global_to_local_map.end();
496483
if (!index_is_condensed)
497484
{
498485
index_it = local_data.uncondensed_global_to_local_map.find(global_index);
499486
libmesh_assert(index_it != local_data.uncondensed_global_to_local_map.end());
500-
#ifdef DEBUG
501-
const auto element_local_dof = index_it->second;
502-
const auto reduced_space_global_index = local_to_global_reduced_indices[element_local_dof];
503-
const auto process_local_reduced_space_index =
504-
cast_int<dof_id_type>(reduced_space_global_index - this->row_start());
505-
const auto unreduced_space_global_index =
506-
_local_uncondensed_dofs[process_local_reduced_space_index];
507-
libmesh_assert(unreduced_space_global_index == global_index);
508-
#endif
509487
}
510488
return std::make_pair(index_is_condensed, index_it->second);
511489
};

0 commit comments

Comments
 (0)