]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Cleanup.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 25 Aug 2010 15:09:19 +0000 (15:09 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 25 Aug 2010 15:09:19 +0000 (15:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@21709 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/dofs/dof_tools.cc

index 9d280a460ed68e753b3ff3e114555878ca439a18..04a0fe035d333f4aac1a26e7754b4fddd971f1ac 100644 (file)
@@ -589,22 +589,12 @@ DoFTools::make_flux_sparsity_pattern (const DH        &dof,
                      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 ();
                    }
                }
@@ -621,22 +611,12 @@ DoFTools::make_flux_sparsity_pattern (const DH        &dof,
 
                  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 ();
                }
            }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.