From 424721a42eecf726ad7b9fbc957fc2f4abcda251 Mon Sep 17 00:00:00 2001 From: guido Date: Sat, 16 Jul 2005 10:23:25 +0000 Subject: [PATCH] half implemented function deleted git-svn-id: https://svn.dealii.org/trunk@11153 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/dofs/dof_tools.cc | 75 ------------------------ 1 file changed, 75 deletions(-) diff --git a/deal.II/deal.II/source/dofs/dof_tools.cc b/deal.II/deal.II/source/dofs/dof_tools.cc index 22e8db1d14..3e9cabf8bb 100644 --- a/deal.II/deal.II/source/dofs/dof_tools.cc +++ b/deal.II/deal.II/source/dofs/dof_tools.cc @@ -255,81 +255,6 @@ DoFTools::compute_row_length_vector( Table<2,Coupling> flux_couplings) { Assert(false, ExcNotImplemented()); - - const FiniteElement& fe = dofs.get_fe(); - const unsigned int ncomp = fe.n_components; - - Assert (row_lengths.size() == dofs.n_dofs(), - ExcDimensionMismatch(row_lengths.size(), dofs.n_dofs())); - - Assert (couplings.n_rows() == couplings.n_cols(), - ExcDimensionMismatch(couplings.n_rows(), couplings.n_cols())); - Assert (flux_couplings.n_rows() == flux_couplings.n_cols(), - ExcDimensionMismatch(flux_couplings.n_rows(), flux_couplings.n_cols())); - - if (couplings.n_rows() > 1) - Assert (couplings.n_rows() == ncomp, - ExcDimensionMismatch(couplings.n_rows(), ncomp)); - if (flux_couplings.n_rows() > 1) - Assert (flux_couplings.n_rows() == ncomp, - ExcDimensionMismatch(flux_couplings.n_rows(), ncomp)); - - // Function starts here by - // resetting the counters. - std::fill(row_lengths.begin(), row_lengths.end(), 0); - // We need the user flags, so we - // save them for later restoration - std::vector old_flags; - user_flags_triangulation.save_user_flags(old_flags); - user_flags_triangulation.clear_user_flags(); - - const typename DoFHandler::cell_iterator end = dofs.end(); - typename DoFHandler::active_cell_iterator cell; - std::vector cell_indices(fe.dofs_per_cell); - std::vector face_indices(fe.dofs_per_face); - - for (cell = dofs.begin(); cell != end; ++cell) - { - cell->get_dof_indices(cell_indices); - // At this point, we have - // counted all dofs - // contributiong from cells - // coupled topologically to the - // adjacent cells, but we - // subtracted some faces. - - // Now, let's go by the faces - // and add the missing - // contribution as well as the - // flux contributions. - for (unsigned int iface=0;iface::faces_per_cell;++iface) - { - if (cell->at_boundary(iface)) - continue; - const bool neighbor_same_level = (cell->neighbor(iface)->level() - == cell->level()); - const unsigned int - nface = (neighbor_same_level) - ? cell->neighbor_of_neighbor(iface) - : cell->neighbor_of_coarser_neighbor(iface); - typename DoFHandler::face_iterator face = cell->face(iface); - - // Flux couplings are - // computed from both sides - // for simplicity. - for (unsigned int i=0;i