@@ -476,36 +476,14 @@ void StaticCondensation::add_matrix(const DenseMatrix<Number> & dm,
476
476
libmesh_assert (_current_elem_id != DofObject ::invalid_id );
477
477
auto & local_data = libmesh_map_find (_elem_to_local_data , _current_elem_id );
478
478
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 ) {
494
481
auto index_it = local_data .condensed_global_to_local_map .find (global_index );
495
482
const bool index_is_condensed = index_it != local_data .condensed_global_to_local_map .end ();
496
483
if (!index_is_condensed )
497
484
{
498
485
index_it = local_data .uncondensed_global_to_local_map .find (global_index );
499
486
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
509
487
}
510
488
return std ::make_pair (index_is_condensed , index_it -> second );
511
489
};
0 commit comments