dofs_on_other_cell.resize (n_dofs_on_neighbor);
sub_neighbor->get_dof_indices (dofs_on_other_cell);
- constraints.add_entries_local_to_global (dofs_on_this_cell,
- dofs_on_other_cell,
- sparsity,
- keep_constrained_dofs);
- constraints.add_entries_local_to_global (dofs_on_other_cell,
- dofs_on_this_cell,
- sparsity,
- keep_constrained_dofs);
-// for (unsigned int i=0; i<n_dofs_on_this_cell; ++i)
-// sparsity.add_entries (dofs_on_this_cell[i],
-// dofs_on_other_cell.begin(),
-// dofs_on_other_cell.end());
-// for (unsigned int j=0; j<n_dofs_on_neighbor; ++j)
-// sparsity.add_entries (dofs_on_other_cell[j],
-// dofs_on_this_cell.begin(),
-// dofs_on_this_cell.end());
+ constraints.add_entries_local_to_global
+ (dofs_on_this_cell, dofs_on_other_cell,
+ sparsity, keep_constrained_dofs);
+ constraints.add_entries_local_to_global
+ (dofs_on_other_cell, dofs_on_this_cell,
+ sparsity, keep_constrained_dofs);
sub_neighbor->face(neighbor_face)->set_user_flag ();
}
}
neighbor->get_dof_indices (dofs_on_other_cell);
- constraints.add_entries_local_to_global (dofs_on_this_cell,
- dofs_on_other_cell,
- sparsity,
- keep_constrained_dofs);
- constraints.add_entries_local_to_global (dofs_on_other_cell,
- dofs_on_this_cell,
- sparsity,
- keep_constrained_dofs);
-// for (unsigned int i=0; i<n_dofs_on_this_cell; ++i)
-// sparsity.add_entries (dofs_on_this_cell[i],
-// dofs_on_other_cell.begin(),
-// dofs_on_other_cell.end());
-// for (unsigned int j=0; j<n_dofs_on_neighbor; ++j)
-// sparsity.add_entries (dofs_on_other_cell[j],
-// dofs_on_this_cell.begin(),
-// dofs_on_this_cell.end());
+ constraints.add_entries_local_to_global
+ (dofs_on_this_cell, dofs_on_other_cell,
+ sparsity, keep_constrained_dofs);
+ constraints.add_entries_local_to_global
+ (dofs_on_other_cell, dofs_on_this_cell,
+ sparsity, keep_constrained_dofs);
neighbor->face(neighbor_face)->set_user_flag ();
}
}