13#ifndef dealii_dof_accessor_h
14#define dealii_dof_accessor_h
31#include <boost/container/small_vector.hpp>
42template <
typename number>
44template <
typename number>
46template <
typename number>
49template <
typename Accessor>
57 namespace DoFCellAccessorImplementation
59 struct Implementation;
62 namespace DoFHandlerImplementation
64 struct Implementation;
67 struct Implementation;
73 namespace DoFHandlerImplementation
75 struct Implementation;
84 namespace DoFAccessorImplementation
102 template <
int structdim,
int dim,
int spacedim>
118 template <
int dim,
int spacedim>
209template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
230 using BaseClass = typename ::internal::DoFAccessorImplementation::
231 Inheritance<structdim, dimension, space_dimension>::BaseClass;
300 template <
int structdim2,
int dim2,
int spacedim2>
307 template <
int structdim2,
int dim2,
int spacedim2,
bool level_dof_access2>
314 template <
bool level_dof_access2>
351 template <
bool level_dof_access2>
387 typename ::internal::DoFHandlerImplementation::
388 Iterators<dim, spacedim, level_dof_access>::line_iterator
389 line(
const unsigned int i)
const;
396 typename ::internal::DoFHandlerImplementation::
397 Iterators<dim, spacedim, level_dof_access>::quad_iterator
398 quad(
const unsigned int i)
const;
449 std::vector<types::global_dof_index> &dof_indices,
461 std::vector<types::global_dof_index> &dof_indices,
470 const std::vector<types::global_dof_index> &dof_indices,
496 const unsigned int vertex,
497 const unsigned int i,
508 const unsigned int vertex,
509 const unsigned int i,
589 std::set<types::fe_index>
622 "This accessor object has not been "
623 "associated with any DoFHandler object.");
677 template <
int structdim2,
int dim2,
int spacedim2,
bool level_dof_access2>
685 template <
int structdim2,
int dim2,
int spacedim2,
bool level_dof_access2>
717 const unsigned int i,
723 const unsigned int i,
729 const unsigned int vertex,
730 const unsigned int i,
738 template <
int,
int,
int,
bool>
746 friend struct ::internal::DoFHandlerImplementation::Policy::
748 friend struct ::internal::DoFHandlerImplementation::Implementation;
749 friend struct ::internal::hp::DoFHandlerImplementation::Implementation;
750 friend struct ::internal::DoFCellAccessorImplementation::Implementation;
751 friend struct ::internal::DoFAccessorImplementation::Implementation;
763template <
int spacedim,
bool level_dof_access>
822 const unsigned int vertex_index,
848 template <
int structdim2,
int dim2,
int spacedim2>
855 template <
int structdim2,
int dim2,
int spacedim2,
bool level_dof_access2>
907 template <
bool level_dof_access2>
931 child(const
unsigned int c) const;
939 typename ::
internal::DoFHandlerImplementation::
940 Iterators<1, spacedim, level_dof_access>::line_iterator
941 line(const
unsigned int i) const;
949 typename ::
internal::DoFHandlerImplementation::
950 Iterators<1, spacedim, level_dof_access>::quad_iterator
951 quad(const
unsigned int i) const;
998 std::vector<
types::global_dof_index> &dof_indices,
999 const
types::fe_index fe_index =
numbers::invalid_fe_index) const;
1010 std::vector<
types::global_dof_index> &dof_indices,
1011 const
types::fe_index fe_index =
numbers::invalid_fe_index) const;
1031 types::global_dof_index
1033 const
unsigned int vertex,
1034 const
unsigned int i,
1035 const
types::fe_index fe_index =
numbers::invalid_fe_index) const;
1054 types::global_dof_index
1056 const
types::fe_index fe_index =
numbers::invalid_fe_index) const;
1118 "This accessor
object has not been "
1162 template <
int structdim2,
int dim2,
int spacedim2,
bool level_dof_access2>
1165 const
DoFAccessor<structdim2, dim2, spacedim2, level_dof_access2> &) const;
1170 template <
int structdim2,
int dim2,
int spacedim2,
bool level_dof_access2>
1173 const
DoFAccessor<structdim2, dim2, spacedim2, level_dof_access2> &) const;
1201 const
unsigned int i,
1202 const
types::global_dof_index index,
1203 const
types::fe_index fe_index =
numbers::invalid_fe_index) const;
1215 friend struct ::
internal::DoFHandlerImplementation::Policy::
1247template <
int structdim,
int dim,
int spacedim = dim>
1265 const int level = -1,
1266 const int index = -1,
1282 template <
typename OtherAccessor>
1302 const unsigned int i,
1323template <
int dimension_,
int space_dimension_,
bool level_dof_access>
1333 static const unsigned int dim = dimension_;
1338 static const unsigned int spacedim = space_dimension_;
1394 template <
int structdim2,
int dim2,
int spacedim2>
1401 template <
int structdim2,
int dim2,
int spacedim2,
bool level_dof_access2>
1475 neighbor(
const unsigned int i)
const;
1483 periodic_neighbor(
const unsigned int i)
const;
1491 neighbor_or_periodic_neighbor(
const unsigned int i)
const;
1499 child(
const unsigned int i)
const;
1504 boost::container::small_vector<
1508 child_iterators()
const;
1517 face(
const unsigned int i)
const;
1524 face_iterators()
const;
1533 neighbor_child_on_subface(
const unsigned int face_no,
1534 const unsigned int subface_no)
const;
1543 periodic_neighbor_child_on_subface(
const unsigned int face_no,
1544 const unsigned int subface_no)
const;
1574 template <
class InputVector,
typename number>
1576 get_dof_values(
const InputVector &values,
Vector<number> &local_values)
const;
1595 template <
typename Number,
typename ForwardIterator>
1598 ForwardIterator local_values_begin,
1599 ForwardIterator local_values_end)
const;
1621 template <
class InputVector,
typename ForwardIterator>
1625 const InputVector &values,
1626 ForwardIterator local_values_begin,
1627 ForwardIterator local_values_end)
const;
1653 template <
class OutputVector,
typename number>
1656 OutputVector &values)
const;
1689 template <
typename Number>
1691 get_interpolated_dof_values(
1700 template <
typename Number>
1702 get_interpolated_dof_values(
1768 template <
class OutputVector,
typename number>
1770 set_dof_values_by_interpolation(
1772 OutputVector &values,
1774 const bool perform_check =
false)
const;
1785 template <
class OutputVector,
typename number>
1787 distribute_local_to_global_by_interpolation(
1789 OutputVector &values,
1806 template <
typename number,
typename OutputVector>
1809 OutputVector &global_destination)
const;
1825 template <
typename ForwardIterator,
typename OutputVector>
1827 distribute_local_to_global(ForwardIterator local_source_begin,
1828 ForwardIterator local_source_end,
1829 OutputVector &global_destination)
const;
1844 template <
typename ForwardIterator,
typename OutputVector>
1846 distribute_local_to_global(
1848 ForwardIterator local_source_begin,
1849 ForwardIterator local_source_end,
1850 OutputVector &global_destination)
const;
1858 template <
typename number,
typename OutputMatrix>
1861 OutputMatrix &global_destination)
const;
1867 template <
typename number,
typename OutputMatrix,
typename OutputVector>
1871 OutputMatrix &global_matrix,
1872 OutputVector &global_vector)
const;
1899 get_active_or_mg_dof_indices(
1900 std::vector<types::global_dof_index> &dof_indices)
const;
1934 get_dof_indices(std::vector<types::global_dof_index> &dof_indices)
const;
1941 get_mg_dof_indices(std::vector<types::global_dof_index> &dof_indices)
const;
1996 active_fe_index()
const;
2035 set_dof_indices(
const std::vector<types::global_dof_index> &dof_indices);
2041 set_mg_dof_indices(
const std::vector<types::global_dof_index> &dof_indices);
2069 get_future_fe()
const;
2090 future_fe_index()
const;
2110 future_fe_index_set()
const;
2121 clear_future_fe_index()
const;
2127 friend struct ::internal::DoFCellAccessorImplementation::Implementation;
2131template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
2135 return level_dof_access;
2140template <
int structdim,
int dim,
int spacedim>
2141template <
typename OtherAccessor>
2143 const OtherAccessor &)
2146 ExcMessage(
"You are attempting an illegal conversion between "
2147 "iterator/accessor types. The constructor you call "
2148 "only exists to make certain template constructs "
2149 "easier to write as dimension independent code but "
2150 "the conversion is not valid in the current context."));
2158template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
2166template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
2172 : ::
internal::DoFAccessorImplementation::
2173 Inheritance<structdim, dim, spacedim>::
BaseClass(tria,
level, index)
2179 "You can't create a DoF accessor in which the DoFHandler object "
2180 "uses a different triangulation than the one you pass as argument."));
2185template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
2186template <
int structdim2,
int dim2,
int spacedim2>
2190 Assert(
false, ExcInvalidObject());
2195template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
2196template <
int structdim2,
int dim2,
int spacedim2,
bool level_dof_access2>
2200 , dof_handler(nullptr)
2204 "You are trying to assign iterators that are incompatible. "
2205 "The reason for incompatibility is that they refer to objects of "
2206 "different dimensionality (e.g., assigning a line iterator "
2207 "to a quad iterator)."));
2212template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
2213template <
bool level_dof_access2>
2217 , dof_handler(const_cast<
DoFHandler<dim, spacedim> *>(other.dof_handler))
2222template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
2227 Assert(dh !=
nullptr, ExcInvalidObject());
2228 this->dof_handler = dh;
2233template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
2237 Assert(this->dof_handler !=
nullptr, ExcInvalidObject());
2238 return *this->dof_handler;
2243template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
2248 Assert(this->dof_handler !=
nullptr, ExcInvalidObject());
2249 BaseClass::copy_from(da);
2254template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
2255template <
bool level_dof_access2>
2260 BaseClass::copy_from(a);
2266template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
2267template <
int structdim2,
int dim2,
int spacedim2,
bool level_dof_access2>
2272 Assert(structdim == structdim2, ExcCantCompareIterators());
2274 return (BaseClass::operator==(a));
2279template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
2280template <
int structdim2,
int dim2,
int spacedim2,
bool level_dof_access2>
2285 Assert(structdim == structdim2, ExcCantCompareIterators());
2287 return (BaseClass::operator!=(a));
2292template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
2295 const unsigned int i)
const
2298 this->dof_handler->object_dof_indices.size(),
2305 *t, this->dof_handler);
2312 namespace DoFAccessorImplementation
2318 template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
2332 "It is not possible to specify a FE index if no hp support is used!"));
2352 "You need to specify a FE index if hp support is used!"));
2373 boost::container::small_vector<::types::global_dof_index, 100>;
2387 template <
int dim,
int spacedim,
int structdim>
2390 const unsigned int obj_level,
2391 const unsigned int obj_index,
2393 const unsigned int local_index,
2394 const std::integral_constant<int, structdim> &dd)
2396 const auto [
first, n_dofs] =
2403 [
first + local_index];
2415 template <
int dim,
int spacedim,
int structdim>
2416 static std::pair<unsigned int, unsigned int>
2418 const unsigned int obj_level,
2419 const unsigned int obj_index,
2421 const std::integral_constant<int, structdim> &)
2427 if (structdim == dim)
2429 const unsigned int ptr_0 =
2431 const unsigned int length =
2432 dof_handler.
get_fe(fe_index).template n_dofs_per_object<dim>(0);
2434 return {ptr_0, length};
2443 const unsigned int ptr_0 =
2445 const unsigned int length =
2446 dof_handler.
object_dof_ptr[obj_level][structdim][obj_index + 1] -
2449 return {ptr_0, length};
2467 const auto fe_index_local_ptr =
2474 Assert(fe_index_local_ptr !=
2478 "You tried to call a function accessing DoF indices, but "
2479 "they appear not be available (yet) or inconsistent. "
2480 "Did you call distribute_dofs() first? Alternatively, if "
2481 "you are using different elements on different cells (i.e., "
2482 "you are using the hp capabilities of deal.II), did you "
2483 "change the active_fe_index of a cell since you last "
2484 "called distribute_dofs()?"));
2489 fe_index_local_ptr);
2495 const unsigned int ptr_0 =
2500 const unsigned int ptr_1 =
2504 fe_index_local + 1];
2506 return {ptr_0, ptr_1 - ptr_0};
2509 template <
int dim,
int spacedim,
int structdim,
bool level_dof_access>
2510 static std::pair<unsigned int, unsigned int>
2512 const ::DoFAccessor<structdim, dim, spacedim, level_dof_access>
2520 std::integral_constant<int, structdim>());
2523 template <
int dim,
int spacedim,
int structdim>
2524 static std::pair<unsigned int, unsigned int>
2546 typename DoFProcessor,
2547 typename DoFMapping>
2550 const unsigned int obj_level,
2551 const unsigned int obj_index,
2553 const DoFMapping &mapping,
2554 const std::integral_constant<int, structdim> &dd,
2556 const DoFProcessor &process)
2563 if (range.second == 0)
2566 std::vector<types::global_dof_index> &object_dof_indices =
2571 object_dof_indices.data() + range.first;
2574 for (
unsigned int i = 0; i < range.second; ++i)
2577 stored_indices[(structdim == 0 || structdim == dim) ? i :
2580 if (dof_indices_ptr !=
nullptr)
2597 template <
int dim,
int spacedim,
int structdim>
2600 const unsigned int obj_level,
2601 const unsigned int obj_index,
2603 const unsigned int local_index,
2604 const std::integral_constant<int, structdim> &dd,
2608 dof_handler, obj_level, obj_index, fe_index, local_index, dd);
2609 Assert(dof_index !=
nullptr,
2610 ExcMessage(
"This object does not store degrees of freedom. "
2611 "It is only adjacent to artificial cells."));
2612 *dof_index = global_index;
2626 template <
int dim,
int spacedim,
int structdim>
2629 const unsigned int obj_level,
2630 const unsigned int obj_index,
2632 const unsigned int local_index,
2633 const std::integral_constant<int, structdim> &dd)
2636 dof_handler, obj_level, obj_index, fe_index, local_index, dd);
2641 template <
int dim,
int spacedim>
2645 const unsigned int vertex_index,
2646 const unsigned int i)
2650 "DoFHandler in hp-mode does not implement multilevel DoFs."));
2667 template <
int dim,
int spacedim,
int structdim>
2670 const unsigned int obj_level,
2671 const unsigned int obj_index,
2672 const std::integral_constant<int, structdim> &)
2683 if (structdim == dim)
2706 template <
int dim,
int spacedim,
int structdim>
2709 const unsigned int obj_level,
2710 const unsigned int obj_index,
2711 const unsigned int local_index,
2712 const std::integral_constant<int, structdim> &)
2717 Assert(((structdim == dim) &&
2727 if (structdim == dim)
2758 template <
int dim,
int spacedim,
int structdim>
2759 static std::set<types::fe_index>
2761 const unsigned int obj_level,
2762 const unsigned int obj_index,
2763 const std::integral_constant<int, structdim> &t)
2772 if (structdim == dim)
2776 std::set<types::fe_index> active_fe_indices;
2777 for (
unsigned int i = 0;
2780 active_fe_indices.insert(
2782 return active_fe_indices;
2787 template <
int dim,
int spacedim,
int structdim>
2790 const unsigned int obj_level,
2791 const unsigned int obj_index,
2793 const std::integral_constant<int, structdim> &)
2802 if (structdim == dim)
2819 template <
typename InputVector,
typename ForwardIterator>
2824 ForwardIterator local_values_begin)
2826 values.extract_subvector_to(cache, cache_end, local_values_begin);
2831#ifdef DEAL_II_WITH_TRILINOS
2832 static std::vector<unsigned int>
2837 std::vector<unsigned int> idx(v_end - v_begin);
2838 std::iota(idx.begin(), idx.end(), 0u);
2841 std::sort(idx.begin(),
2843 [&v_begin](
unsigned int i1,
unsigned int i2) {
2844 return *(v_begin + i1) < *(v_begin + i2);
2852# ifdef DEAL_II_TRILINOS_WITH_TPETRA
2853 template <
typename ForwardIterator,
typename Number,
typename MemorySpace>
2860 ForwardIterator local_values_begin)
2862 std::vector<unsigned int> sorted_indices_pos =
2864 const unsigned int cache_size = cache_end - cache_begin;
2865 std::vector<types::global_dof_index> cache_indices(cache_size);
2866 for (
unsigned int i = 0; i < cache_size; ++i)
2867 cache_indices[i] = *(cache_begin + sorted_indices_pos[i]);
2869 IndexSet index_set(cache_indices.back() + 1);
2870 index_set.
add_indices(cache_indices.begin(), cache_indices.end());
2876 for (
unsigned int i = 0; i < cache_size; ++i, ++local_values_begin)
2877 *local_values_begin = read_write_vector[sorted_indices_pos[i]];
2882# ifdef DEAL_II_TRILINOS_WITH_EPETRA
2883 template <
typename ForwardIterator>
2888 ForwardIterator local_values_begin)
2890 std::vector<unsigned int> sorted_indices_pos =
2892 const unsigned int cache_size = cache_end - cache_begin;
2893 std::vector<types::global_dof_index> cache_indices(cache_size);
2894 for (
unsigned int i = 0; i < cache_size; ++i)
2895 cache_indices[i] = *(cache_begin + sorted_indices_pos[i]);
2897 IndexSet index_set(cache_indices.back() + 1);
2898 index_set.
add_indices(cache_indices.begin(), cache_indices.end());
2904 for (
unsigned int i = 0; i < cache_size; ++i, ++local_values_begin)
2905 *local_values_begin = read_write_vector[sorted_indices_pos[i]];
2914 template <
int dim,
int spacedim,
bool level_dof_access,
int structdim>
2917 const ::DoFAccessor<structdim, dim, spacedim, level_dof_access>
2920 const bool count_level_dofs)
2925 if (count_level_dofs)
2927 const auto &fe = accessor.get_fe(fe_index_);
2930 dofs_per_vertex = fe.n_dofs_per_vertex(),
2931 dofs_per_line = fe.n_dofs_per_line(),
2932 dofs_per_quad = fe.n_dofs_per_quad(0 ),
2933 dofs_per_hex = fe.n_dofs_per_hex();
2935 unsigned int index = 0;
2938 index += dofs_per_vertex * accessor.n_vertices();
2941 if (structdim == 2 || structdim == 3)
2942 index += dofs_per_line * accessor.n_lines();
2946 index += dofs_per_quad * accessor.n_faces();
2949 const unsigned int interior_dofs =
2950 structdim == 1 ? dofs_per_line :
2951 (structdim == 2 ? dofs_per_quad : dofs_per_hex);
2953 index += interior_dofs;
2959 const auto fe_index =
2961 accessor, fe_index_);
2963 unsigned int index = 0;
2966 for (
const auto vertex : accessor.vertex_indices())
2969 accessor.vertex_index(vertex),
2971 std::integral_constant<int, 0>())
2975 if constexpr (structdim == 2 || structdim == 3)
2977 const auto line_indices = TriaAccessorImplementation::
2978 Implementation::get_line_indices_of_cell(accessor);
2979 for (
const auto line_no : accessor.line_indices())
2982 &accessor.get_triangulation(),
2984 line_indices[line_no],
2985 &accessor.get_dof_handler());
2992 for (
const auto face : accessor.face_indices())
3009 template <
typename ArrayType>
3013 return array.size();
3022 template <
typename ArrayType>
3044 bool level_dof_access,
3046 typename DoFIndicesType,
3047 typename DoFOperation,
3048 typename DoFProcessor>
3051 const ::DoFAccessor<structdim, dim, spacedim, level_dof_access>
3053 const DoFIndicesType &const_dof_indices,
3055 const DoFOperation &dof_operation,
3056 const DoFProcessor &dof_processor,
3057 const bool count_level_dofs)
3061 accessor, fe_index_);
3066 (void)count_level_dofs;
3068 const auto &fe = accessor.get_fe(fe_index);
3082 if (fe.n_dofs_per_vertex() > 0)
3083 for (
const auto vertex : accessor.vertex_indices())
3084 dof_operation.process_vertex_dofs(*accessor.dof_handler,
3085 accessor.vertex_index(vertex),
3092 if (structdim > 1 && fe.n_dofs_per_line() > 0)
3094 const auto [line_indices, line_orientations] =
3095 internal::TriaAccessorImplementation::Implementation::
3096 get_line_indices_and_orientations_of_cell(accessor);
3098 for (
const auto line : accessor.line_indices())
3100 const auto line_orientation = line_orientations[line];
3102 dof_operation.process_dofs(
3103 accessor.get_dof_handler(),
3107 [](
const auto d) {
return d; },
3108 std::integral_constant<int, 1>(),
3113 Assert(line_orientation ==
3116 dof_operation.process_dofs(
3117 accessor.get_dof_handler(),
3121 [&fe](
const auto d) {
3122 return fe.adjust_line_dof_index_for_line_orientation(
3123 d, numbers::reverse_line_orientation);
3125 std::integral_constant<int, 1>(),
3135 if (structdim == 3 && fe.max_dofs_per_quad() > 0)
3136 for (
const auto face_no : accessor.face_indices())
3138 const auto combined_orientation =
3139 accessor.combined_face_orientation(face_no);
3140 const unsigned int quad_index = accessor.quad_index(face_no);
3141 if (combined_orientation ==
3143 dof_operation.process_dofs(
3144 accessor.get_dof_handler(),
3148 [](
const auto d) {
return d; },
3149 std::integral_constant<int, 2>(),
3153 dof_operation.process_dofs(
3154 accessor.get_dof_handler(),
3159 return fe.adjust_quad_dof_index_for_face_orientation(
3160 d, face_no, combined_orientation);
3162 std::integral_constant<int, 2>(),
3171 if (((dim == 3 && structdim == 2) ?
3172 fe.max_dofs_per_quad() :
3173 fe.template n_dofs_per_object<structdim>()) > 0)
3174 dof_operation.process_dofs(
3175 accessor.get_dof_handler(),
3179 [&](
const auto d) {
return d; },
3180 std::integral_constant<int, structdim>(),
3184 if (dof_indices_ptr !=
nullptr)
3195 if (dof_indices_ptr != end_dof_indices)
3198 for (; dof_indices_ptr < end_dof_indices; ++dof_indices_ptr)
3199 dof_processor(invalid_index, dof_indices_ptr);
3208 template <
int dim,
int spacedim>
3214 template <
typename DoFProcessor>
3217 const unsigned int vertex_index,
3220 const DoFProcessor &dof_processor)
const
3231 std::integral_constant<int, 0>(),
3239 template <
int structdim,
typename DoFMapping,
typename DoFProcessor>
3242 const unsigned int obj_level,
3243 const unsigned int obj_index,
3245 const DoFMapping &mapping,
3246 const std::integral_constant<int, structdim>,
3248 const DoFProcessor &dof_processor)
const
3256 std::integral_constant<
int,
std::min(structdim, dim)>(),
3268 template <
int dim,
int spacedim>
3281 template <
typename DoFProcessor>
3284 const unsigned int vertex_index,
3287 const DoFProcessor &dof_processor)
const
3289 const unsigned int n_indices =
3290 dof_handler.
get_fe(0).template n_dofs_per_object<0>();
3295 for (
unsigned int d = 0; d < n_indices; ++d, ++dof_indices_ptr)
3296 dof_processor(stored_indices[d], dof_indices_ptr);
3302 template <
int structdim,
typename DoFMapping,
typename DoFProcessor>
3306 const unsigned int obj_index,
3308 const DoFMapping &mapping,
3309 const std::integral_constant<int, structdim>,
3311 const DoFProcessor &dof_processor)
const
3313 const unsigned int n_indices =
3314 dof_handler.
get_fe(0).template n_dofs_per_object<structdim>();
3322 std::integral_constant<
int,
std::min(structdim, dim)>());
3323 for (
unsigned int d = 0; d < n_indices; ++d, ++dof_indices_ptr)
3324 dof_processor(stored_indices[structdim < dim ? mapping(d) : d],
3334 template <
int dim,
int spacedim,
bool level_dof_access,
int structdim>
3337 const ::DoFAccessor<structdim, dim, spacedim, level_dof_access>
3339 std::vector<types::global_dof_index> &dof_indices,
3347 [](
auto stored_index,
auto dof_ptr) { *dof_ptr = stored_index; },
3353 template <
int dim,
int spacedim,
bool level_dof_access,
int structdim>
3356 const ::DoFAccessor<structdim, dim, spacedim, level_dof_access>
3358 const std::vector<types::global_dof_index> &dof_indices,
3369 "This function is intended to be used for DoFCellAccessor, i.e., "
3370 "dimension == structdim."));
3377 [](
auto &stored_index,
auto dof_ptr) { stored_index = *dof_ptr; },
3383 template <
int dim,
int spacedim,
bool level_dof_access,
int structdim>
3386 const ::DoFAccessor<structdim, dim, spacedim, level_dof_access>
3389 std::vector<types::global_dof_index> &dof_indices,
3393 ExcMessage(
"MG DoF indices cannot be queried in hp case"));
3399 [](
auto stored_index,
auto dof_ptr) { *dof_ptr = stored_index; },
3405 template <
int dim,
int spacedim,
bool level_dof_access,
int structdim>
3408 const ::DoFAccessor<structdim, dim, spacedim, level_dof_access>
3411 const std::vector<types::global_dof_index> &dof_indices,
3415 ExcMessage(
"MG DoF indices cannot be queried in hp case"));
3423 ExcMessage(
"This function is intended to be used for "
3424 "DoFCellAccessor, i.e., dimension == structdim."));
3431 [](
auto &stored_index,
auto dof_ptr) { stored_index = *dof_ptr; },
3437 template <
int dim,
int spacedim>
3445 const unsigned int obj_index,
3447 const unsigned int local_index,
3448 const std::integral_constant<int, dim>)
3453 return mg_level->dof_object.access_dof_index(
3462 template <
int dim,
int spacedim, std::enable_if_t<(dim > 1),
int> = 0>
3470 const unsigned int obj_index,
3472 const unsigned int local_index,
3473 const std::integral_constant<int, 1>)
3475 return mg_faces->lines.access_dof_index(
3484 template <
int spacedim>
3492 const unsigned int obj_index,
3494 const unsigned int local_index,
3495 const std::integral_constant<int, 2>)
3499 return mg_faces->quads.access_dof_index(
3509 template <
int dim,
int spacedim,
bool level_dof_access>
3512 const ::DoFCellAccessor<dim, spacedim, level_dof_access> &accessor,
3514 const unsigned int fe_index);
3520template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
3523 const unsigned int i,
3526 const auto fe_index =
3531 return ::internal::DoFAccessorImplementation::Implementation::
3532 get_dof_index(*this->dof_handler,
3537 std::integral_constant<int, structdim>());
3541template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
3545 const unsigned int i)
const
3549 this->dof_handler->mg_levels[
level],
3550 this->dof_handler->mg_faces,
3554 std::integral_constant<int, structdim>());
3558template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
3561 const unsigned int i,
3565 const auto fe_index =
3576 std::integral_constant<int, structdim>(),
3582template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
3586 const unsigned int i,
3591 this->dof_handler->mg_levels[
level],
3592 this->dof_handler->mg_faces,
3596 std::integral_constant<int, structdim>()) = index;
3601template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
3607 return ::internal::DoFAccessorImplementation::Implementation::
3608 n_active_fe_indices(*this->dof_handler,
3611 std::integral_constant<int, structdim>());
3616template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
3619 const unsigned int n)
const
3622 return ::internal::DoFAccessorImplementation::Implementation::
3623 nth_active_fe_index(*this->dof_handler,
3627 std::integral_constant<int, structdim>());
3632template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
3633inline std::set<types::fe_index>
3637 std::set<types::fe_index> active_fe_indices;
3638 for (
unsigned int i = 0; i < n_active_fe_indices(); ++i)
3639 active_fe_indices.insert(nth_active_fe_index(i));
3640 return active_fe_indices;
3645template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
3651 return ::internal::DoFAccessorImplementation::Implementation::
3652 fe_index_is_active(*this->dof_handler,
3656 std::integral_constant<int, structdim>());
3661template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
3664 const unsigned int vertex,
3665 const unsigned int i,
3669 (((this->dof_handler->hp_capability_enabled ==
false) &&
3680 this->nth_active_fe_index(0) :
3683 return ::internal::DoFAccessorImplementation::Implementation::
3684 get_dof_index(*this->dof_handler,
3686 this->vertex_index(vertex),
3689 std::integral_constant<int, 0>());
3693template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
3697 const unsigned int vertex,
3698 const unsigned int i,
3701 const auto fe_index =
3705 Assert(this->dof_handler !=
nullptr, ExcInvalidObject());
3706 Assert(this->dof_handler->mg_vertex_dofs.size() > 0,
3707 ExcMessage(
"Multigrid DoF indices can only be accessed after "
3708 "DoFHandler::distribute_mg_dofs() has been called!"));
3710 AssertIndexRange(i, this->dof_handler->get_fe(fe_index).n_dofs_per_vertex());
3712 Assert(dof_handler->hp_capability_enabled ==
false,
3714 "DoFHandler in hp-mode does not implement multilevel DoFs."));
3716 return this->dof_handler->mg_vertex_dofs[this->vertex_index(vertex)]
3717 .access_index(
level, i, this->dof_handler->get_fe().n_dofs_per_vertex());
3722template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
3726 const unsigned int vertex,
3727 const unsigned int i,
3731 const auto fe_index =
3735 Assert(this->dof_handler !=
nullptr, ExcInvalidObject());
3737 AssertIndexRange(i, this->dof_handler->get_fe(fe_index).n_dofs_per_vertex());
3739 Assert(dof_handler->hp_capability_enabled ==
false,
3741 "DoFHandler in hp-mode does not implement multilevel DoFs."));
3743 this->dof_handler->mg_vertex_dofs[this->vertex_index(vertex)].access_index(
3744 level, i, this->dof_handler->get_fe().n_dofs_per_vertex()) = index;
3749template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
3754 Assert(fe_index_is_active(fe_index) ==
true,
3755 ExcMessage(
"This function can only be called for active FE indices"));
3757 return this->dof_handler->get_fe(fe_index);
3762template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
3763inline typename ::internal::DoFHandlerImplementation::
3764 Iterators<dim, spacedim, level_dof_access>::line_iterator
3766 const unsigned int i)
const
3774 ExcMessage(
"You can only ask for line zero if the "
3775 "current object is a line itself."));
3776 return typename ::internal::DoFHandlerImplementation::
3777 Iterators<dim, spacedim, level_dof_access>::cell_iterator(
3778 &this->get_triangulation(),
3781 &this->get_dof_handler());
3789 return typename ::internal::DoFHandlerImplementation::
3790 Iterators<dim, spacedim, level_dof_access>::line_iterator(
3793 this->line_index(i),
3798template <
int structdim,
int dim,
int spacedim,
bool level_dof_access>
3799inline typename ::internal::DoFHandlerImplementation::
3800 Iterators<dim, spacedim, level_dof_access>::quad_iterator
3802 const unsigned int i)
const
3812 ExcMessage(
"You can only ask for quad zero if the "
3813 "current object is a quad itself."));
3814 return typename ::internal::DoFHandlerImplementation::
3815 Iterators<dim, spacedim>::cell_iterator(&this->get_triangulation(),
3818 &this->get_dof_handler());
3826 return typename ::internal::DoFHandlerImplementation::
3827 Iterators<dim, spacedim, level_dof_access>::quad_iterator(
3830 this->quad_index(i),
3838template <
int spacedim,
bool level_dof_access>
3841 Assert(
false, ExcInvalidObject());
3846template <
int spacedim,
bool level_dof_access>
3850 const unsigned int vertex_index,
3852 :
BaseClass(tria, vertex_kind, vertex_index)
3853 , dof_handler(const_cast<
DoFHandler<1, spacedim> *>(dof_handler))
3858template <
int spacedim,
bool level_dof_access>
3880 Assert((tria ==
nullptr) && (
level == -2) && (index == -2) &&
3883 "This constructor can not be called for face iterators in 1d, "
3884 "except to default-construct iterator objects."));
3889template <
int spacedim,
bool level_dof_access>
3890template <
int structdim2,
int dim2,
int spacedim2>
3894 Assert(
false, ExcInvalidObject());
3899template <
int spacedim,
bool level_dof_access>
3900template <
int structdim2,
int dim2,
int spacedim2,
bool level_dof_access2>
3904 Assert(
false, ExcInvalidObject());
3909template <
int spacedim,
bool level_dof_access>
3914 Assert(dh !=
nullptr, ExcInvalidObject());
3915 this->dof_handler = dh;
3920template <
int spacedim,
bool level_dof_access>
3923 const unsigned int ,
3932template <
int spacedim,
bool level_dof_access>
3936 return *this->dof_handler;
3941template <
int spacedim,
bool level_dof_access>
3944 std::vector<types::global_dof_index> &dof_indices,
3947 const auto fe_index =
3951 for (
unsigned int i = 0; i < dof_indices.size(); ++i)
3952 dof_indices[i] = ::internal::DoFAccessorImplementation::
3953 Implementation::get_dof_index(*dof_handler,
3955 this->global_vertex_index,
3958 std::integral_constant<int, 0>());
3963template <
int spacedim,
bool level_dof_access>
3967 std::vector<types::global_dof_index> &dof_indices,
3970 const auto fe_index =
3976 for (
unsigned int i = 0; i < dof_indices.size(); ++i)
3979 mg_vertex_dof_index(*dof_handler,
level, this->global_vertex_index, i);
3984template <
int spacedim,
bool level_dof_access>
3987 const unsigned int vertex,
3988 const unsigned int i,
3991 const auto fe_index =
3997 return ::internal::DoFAccessorImplementation::Implementation::
3998 get_dof_index(*dof_handler,
4000 this->global_vertex_index,
4003 std::integral_constant<int, 0>());
4008template <
int spacedim,
bool level_dof_access>
4011 const unsigned int i,
4014 const auto fe_index =
4018 return ::internal::DoFAccessorImplementation::Implementation::
4019 get_dof_index(*this->dof_handler,
4021 this->vertex_index(0),
4024 std::integral_constant<int, 0>());
4029template <
int spacedim,
bool level_dof_access>
4038template <
int spacedim,
bool level_dof_access>
4041 const unsigned int )
const
4048template <
int spacedim,
bool level_dof_access>
4059template <
int spacedim,
bool level_dof_access>
4064 Assert(this->dof_handler !=
nullptr, ExcInvalidObject());
4065 return dof_handler->get_fe(fe_index);
4070template <
int spacedim,
bool level_dof_access>
4075 Assert(this->dof_handler !=
nullptr, ExcInvalidObject());
4076 BaseClass::copy_from(da);
4081template <
int spacedim,
bool level_dof_access>
4082template <
bool level_dof_access2>
4087 BaseClass::copy_from(a);
4093template <
int spacedim,
bool level_dof_access>
4096 const unsigned int )
const
4103template <
int spacedim,
bool level_dof_access>
4104inline typename ::internal::DoFHandlerImplementation::
4105 Iterators<1, spacedim, level_dof_access>::line_iterator
4107 const unsigned int )
const
4110 return typename ::internal::DoFHandlerImplementation::
4111 Iterators<1, spacedim, level_dof_access>::line_iterator();
4116template <
int spacedim,
bool level_dof_access>
4117inline typename ::internal::DoFHandlerImplementation::
4118 Iterators<1, spacedim, level_dof_access>::quad_iterator
4120 const unsigned int )
const
4123 return typename ::internal::DoFHandlerImplementation::
4124 Iterators<1, spacedim, level_dof_access>::quad_iterator();
4129template <
int spacedim,
bool level_dof_access>
4130template <
int structdim2,
int dim2,
int spacedim2,
bool level_dof_access2>
4135 Assert(structdim2 == 0, ExcCantCompareIterators());
4137 return (BaseClass::operator==(a));
4142template <
int spacedim,
bool level_dof_access>
4143template <
int structdim2,
int dim2,
int spacedim2,
bool level_dof_access2>
4148 Assert(structdim2 == 0, ExcCantCompareIterators());
4150 return (BaseClass::operator!=(a));
4160 namespace DoFCellAccessorImplementation
4172 template <
int dim,
int spacedim,
bool level_dof_access>
4181 (
typename std::decay_t<
decltype(accessor)>::ExcInvalidObject()));
4182 Assert(
static_cast<unsigned int>(accessor.level()) <
4196 template <
int dim,
int spacedim,
bool level_dof_access>
4209 (
typename std::decay_t<
decltype(accessor)>::ExcInvalidObject()));
4210 Assert(
static_cast<unsigned int>(accessor.level()) <
4214 ExcMessage(
"Invalid finite element index."));
4218 [accessor.present_index] = i;
4227 template <
int dim,
int spacedim,
bool level_dof_access>
4236 (
typename std::decay_t<
decltype(accessor)>::ExcInvalidObject()));
4237 Assert(
static_cast<unsigned int>(accessor.level()) <
4244 [accessor.present_index];
4248 [accessor.present_index];
4256 template <
int dim,
int spacedim,
bool level_dof_access>
4269 (
typename std::decay_t<
decltype(accessor)>::ExcInvalidObject()));
4270 Assert(
static_cast<unsigned int>(accessor.level()) <
4274 ExcMessage(
"Invalid finite element index."));
4278 [accessor.present_index] = i;
4287 template <
int dim,
int spacedim,
bool level_dof_access>
4296 (
typename std::decay_t<
decltype(accessor)>::ExcInvalidObject()));
4297 Assert(
static_cast<unsigned int>(accessor.level()) <
4303 [accessor.present_index] !=
4313 template <
int dim,
int spacedim,
bool level_dof_access>
4322 (
typename std::decay_t<
decltype(accessor)>::ExcInvalidObject()));
4323 Assert(
static_cast<unsigned int>(accessor.level()) <
4329 [accessor.present_index] =
4338template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4344 :
DoFAccessor<dimension_, dimension_, space_dimension_, level_dof_access>(
4353template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4354template <
int structdim2,
int dim2,
int spacedim2>
4358 Assert(
false,
typename BaseClass::ExcInvalidObject());
4363template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4364template <
int structdim2,
int dim2,
int spacedim2,
bool level_dof_access2>
4373template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4377 const unsigned int i)
const
4381 this->neighbor_level(i),
4382 this->neighbor_index(i),
4395template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4399 const unsigned int i)
const
4402 q(this->tria, this->
level() + 1, this->child_index(i), this->dof_handler);
4414template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4415inline boost::container::small_vector<
4421 boost::container::small_vector<
4425 child_iterators(this->n_children());
4427 for (
unsigned int i = 0; i < this->n_children(); ++i)
4428 child_iterators[i] = this->child(i);
4430 return child_iterators;
4435template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4441 q(this->tria, this->
level() - 1, this->parent_index(), this->dof_handler);
4450 namespace DoFCellAccessorImplementation
4452 template <
int dim,
int spacedim,
bool level_dof_access>
4456 const ::DoFCellAccessor<dim, spacedim, level_dof_access> &cell,
4457 const unsigned int i,
4458 const std::integral_constant<int, 1>)
4461 &cell.get_triangulation(),
4462 ((i == 0) && cell.at_boundary(0) ?
4464 ((i == 1) && cell.at_boundary(1) ?
4467 cell.vertex_index(i),
4468 &cell.get_dof_handler());
4469 return ::TriaIterator<
4474 template <
int dim,
int spacedim,
bool level_dof_access>
4478 const ::DoFCellAccessor<dim, spacedim, level_dof_access> &cell,
4479 const unsigned int i,
4480 const std::integral_constant<int, 2>)
4482 return cell.
line(i);
4486 template <
int dim,
int spacedim,
bool level_dof_access>
4490 const ::DoFCellAccessor<dim, spacedim, level_dof_access> &cell,
4491 const unsigned int i,
4492 const std::integral_constant<int, 3>)
4494 return cell.
quad(i);
4501template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4504 level_dof_access>::face_iterator
4506 const unsigned int i)
const
4510 return ::internal::DoFCellAccessorImplementation::get_face(
4511 *
this, i, std::integral_constant<int, dimension_>());
4516template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4517inline boost::container::small_vector<
4524 boost::container::small_vector<
4528 face_iterators(this->n_faces());
4530 for (
const unsigned int i : this->face_indices())
4533 *
this, i, std::integral_constant<int, dimension_>());
4535 return face_iterators;
4540template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4544 std::vector<types::global_dof_index> &dof_indices)
const
4546 if (level_dof_access)
4547 get_mg_dof_indices(dof_indices);
4549 get_dof_indices(dof_indices);
4554template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4555template <
class InputVector,
typename number>
4558 const InputVector &values,
4561 get_dof_values(values, local_values.
begin(), local_values.
end());
4566template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4567template <
typename Number,
typename ForwardIterator>
4571 ForwardIterator local_values_begin,
4572 ForwardIterator local_values_end)
const
4574 (void)local_values_end;
4575 Assert(this->is_artificial() ==
false,
4576 ExcMessage(
"Can't ask for DoF indices on artificial cells."));
4578 Assert(this->dof_handler !=
nullptr,
typename BaseClass::ExcInvalidObject());
4580 Assert(
static_cast<unsigned int>(local_values_end - local_values_begin) ==
4581 this->get_fe().n_dofs_per_cell(),
4583 Assert(values.size() == this->get_dof_handler().n_dofs(),
4587 dof_indices(this->get_fe().n_dofs_per_cell());
4589 *
this, dof_indices, this->active_fe_index());
4591 boost::container::small_vector<Number, 100> values_temp(local_values_end -
4592 local_values_begin);
4597 using view_type = std::remove_reference_t<
decltype(*local_values_begin)>;
4599 local_values_end - local_values_begin);
4600 std::copy(values_temp.begin(), values_temp.end(), values_view2.
begin());
4605template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4606template <
class InputVector,
typename ForwardIterator>
4610 const InputVector &values,
4611 ForwardIterator local_values_begin,
4612 ForwardIterator local_values_end)
const
4614 Assert(this->is_artificial() ==
false,
4615 ExcMessage(
"Can't ask for DoF indices on artificial cells."));
4618 Assert(
static_cast<unsigned int>(local_values_end - local_values_begin) ==
4619 this->get_fe().n_dofs_per_cell(),
4621 Assert(values.size() == this->get_dof_handler().n_dofs(),
4626 dof_indices(this->get_fe().n_dofs_per_cell());
4628 *
this, dof_indices, this->active_fe_index());
4638template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4639template <
class OutputVector,
typename number>
4643 OutputVector &values)
const
4645 Assert(this->is_artificial() ==
false,
4646 ExcMessage(
"Can't ask for DoF indices on artificial cells."));
4649 Assert(
static_cast<unsigned int>(local_values.
size()) ==
4650 this->get_fe().n_dofs_per_cell(),
4652 Assert(values.size() == this->get_dof_handler().n_dofs(),
4656 Assert(this->dof_handler !=
nullptr,
typename BaseClass::ExcInvalidObject());
4658 dof_indices(this->get_fe().n_dofs_per_cell());
4660 *
this, dof_indices, this->active_fe_index());
4662 for (
unsigned int i = 0; i < this->get_fe().n_dofs_per_cell(); ++i)
4670template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4674 Assert(this->dof_handler !=
nullptr,
typename BaseClass::ExcInvalidObject());
4675 Assert((this->dof_handler->hp_capability_enabled ==
false) ||
4678 "For DoFHandler objects in hp-mode, finite elements are only "
4679 "associated with active cells. Consequently, you can not ask "
4680 "for the active finite element on cells with children."));
4682 const auto &fe = this->dof_handler->get_fe(active_fe_index());
4684 Assert(this->reference_cell() == fe.reference_cell(),
4686 "The reference-cell type used on this cell (" +
4687 this->reference_cell().to_string() +
4688 ") does not match the reference-cell type of the finite element "
4689 "associated with this cell (" +
4690 fe.reference_cell().to_string() +
4692 "Did you accidentally use simplex elements on hypercube meshes "
4693 "(or the other way around), or are you using a mixed mesh and "
4694 "assigned a simplex element to a hypercube cell (or the other "
4695 "way around) via the active_fe_index?"));
4702template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4707 Assert((this->dof_handler->hp_capability_enabled ==
false) ||
4710 "You can not ask for the active FE index on a cell that has "
4711 "children because no degrees of freedom are assigned "
4712 "to this cell and, consequently, no finite element "
4713 "is associated with it."));
4714 Assert((this->dof_handler->hp_capability_enabled ==
false) ||
4715 (this->is_locally_owned() || this->is_ghost()),
4716 ExcMessage(
"You can only query active FE index information on cells "
4717 "that are either locally owned or (after distributing "
4718 "degrees of freedom) are ghost cells."));
4720 return ::internal::DoFCellAccessorImplementation::Implementation::
4721 active_fe_index(*
this);
4726template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4731 Assert((this->dof_handler->hp_capability_enabled ==
false) ||
4733 ExcMessage(
"You can not set the active FE index on a cell that has "
4734 "children because no degrees of freedom will be assigned "
4737 Assert((this->dof_handler->hp_capability_enabled ==
false) ||
4738 this->is_locally_owned(),
4739 ExcMessage(
"You can only set active FE index information on cells "
4740 "that are locally owned. On ghost cells, this information "
4741 "will automatically be propagated from the owning process "
4742 "of that cell, and there is no information at all on "
4743 "artificial cells."));
4751template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4756 Assert(this->dof_handler !=
nullptr,
typename BaseClass::ExcInvalidObject());
4757 Assert((this->dof_handler->hp_capability_enabled ==
false) ||
4760 "For DoFHandler objects in hp-mode, finite elements are only "
4761 "associated with active cells. Consequently, you can not ask "
4762 "for the future finite element on cells with children."));
4764 return this->dof_handler->get_fe(future_fe_index());
4769template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4774 Assert((this->dof_handler->hp_capability_enabled ==
false) ||
4775 (this->has_children() ==
false),
4777 "You can not ask for the future FE index on a cell that has "
4778 "children because no degrees of freedom are assigned "
4779 "to this cell and, consequently, no finite element "
4780 "is associated with it."));
4781 Assert((this->dof_handler->hp_capability_enabled ==
false) ||
4782 (this->is_locally_owned()),
4783 ExcMessage(
"You can only query future FE index information on cells "
4784 "that are locally owned."));
4786 return ::internal::DoFCellAccessorImplementation::Implementation::
4787 future_fe_index(*
this);
4792template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4797 Assert((this->dof_handler->hp_capability_enabled ==
false) ||
4798 (this->has_children() ==
false),
4799 ExcMessage(
"You can not set the future FE index on a cell that has "
4800 "children because no degrees of freedom will be assigned "
4803 Assert((this->dof_handler->hp_capability_enabled ==
false) ||
4804 this->is_locally_owned(),
4805 ExcMessage(
"You can only set future FE index information on cells "
4806 "that are locally owned."));
4814template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4819 Assert((this->dof_handler->hp_capability_enabled ==
false) ||
4820 (this->has_children() ==
false),
4822 "You can not ask for the future FE index on a cell that has "
4823 "children because no degrees of freedom are assigned "
4824 "to this cell and, consequently, no finite element "
4825 "is associated with it."));
4826 Assert((this->dof_handler->hp_capability_enabled ==
false) ||
4827 (this->is_locally_owned()),
4828 ExcMessage(
"You can only query future FE index information on cells "
4829 "that are locally owned."));
4831 return ::internal::DoFCellAccessorImplementation::Implementation::
4832 future_fe_index_set(*
this);
4837template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4842 Assert((this->dof_handler->hp_capability_enabled ==
false) ||
4843 (this->has_children() ==
false),
4845 "You can not ask for the future FE index on a cell that has "
4846 "children because no degrees of freedom are assigned "
4847 "to this cell and, consequently, no finite element "
4848 "is associated with it."));
4849 Assert((this->dof_handler->hp_capability_enabled ==
false) ||
4850 (this->is_locally_owned()),
4851 ExcMessage(
"You can only query future FE index information on cells "
4852 "that are locally owned."));
4860template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4861template <
typename number,
typename OutputVector>
4865 OutputVector &global_destination)
const
4867 this->distribute_local_to_global(local_source.
begin(),
4869 global_destination);
4874template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4875template <
typename ForwardIterator,
typename OutputVector>
4879 ForwardIterator local_source_end,
4880 OutputVector &global_destination)
const
4882 Assert(this->dof_handler !=
nullptr,
4883 (
typename std::decay_t<
decltype(*
this)>::ExcInvalidObject()));
4884 Assert(
static_cast<unsigned int>(local_source_end - local_source_begin) ==
4885 this->get_fe().n_dofs_per_cell(),
4886 (
typename std::decay_t<
decltype(*
this)>::ExcVectorDoesNotMatch()));
4887 Assert(this->dof_handler->n_dofs() == global_destination.size(),
4888 (
typename std::decay_t<
decltype(*
this)>::ExcVectorDoesNotMatch()));
4893 internal::ArrayViewHelper::is_contiguous(local_source_begin,
4896 "This function can not be called with iterator types that do not point to contiguous memory."));
4898 const unsigned int n_dofs = local_source_end - local_source_begin;
4901 dof_indices(n_dofs);
4903 *
this, dof_indices, this->active_fe_index());
4906 global_destination.add(n_dofs, dof_indices.data(), &(*local_source_begin));
4911template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4912template <
typename ForwardIterator,
typename OutputVector>
4917 ForwardIterator local_source_begin,
4918 ForwardIterator local_source_end,
4919 OutputVector &global_destination)
const
4921 Assert(this->dof_handler !=
nullptr,
4922 (
typename std::decay_t<
decltype(*
this)>::ExcInvalidObject()));
4923 Assert(local_source_end - local_source_begin ==
4924 this->get_fe().n_dofs_per_cell(),
4925 (
typename std::decay_t<
decltype(*
this)>::ExcVectorDoesNotMatch()));
4926 Assert(this->dof_handler->n_dofs() == global_destination.size(),
4927 (
typename std::decay_t<
decltype(*
this)>::ExcVectorDoesNotMatch()));
4932 dof_indices(this->get_fe().n_dofs_per_cell());
4934 *
this, dof_indices, this->active_fe_index());
4940 global_destination);
4945template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4946template <
typename number,
typename OutputMatrix>
4950 OutputMatrix &global_destination)
const
4952 Assert(this->dof_handler !=
nullptr,
4953 (
typename std::decay_t<
decltype(*
this)>::ExcInvalidObject()));
4954 Assert(local_source.
m() == this->get_fe().n_dofs_per_cell(),
4955 (
typename std::decay_t<
decltype(*
this)>::ExcMatrixDoesNotMatch()));
4956 Assert(local_source.
n() == this->get_fe().n_dofs_per_cell(),
4957 (
typename std::decay_t<
decltype(*
this)>::ExcMatrixDoesNotMatch()));
4958 Assert(this->dof_handler->n_dofs() == global_destination.m(),
4959 (
typename std::decay_t<
decltype(*
this)>::ExcMatrixDoesNotMatch()));
4960 Assert(this->dof_handler->n_dofs() == global_destination.n(),
4961 (
typename std::decay_t<
decltype(*
this)>::ExcMatrixDoesNotMatch()));
4965 const unsigned int n_dofs = local_source.
m();
4968 dof_indices(n_dofs);
4970 *
this, dof_indices, this->active_fe_index());
4973 for (
unsigned int i = 0; i < n_dofs; ++i)
4974 global_destination.add(dof_indices[i],
4977 &local_source(i, 0));
4982template <
int dimension_,
int space_dimension_,
bool level_dof_access>
4983template <
typename number,
typename OutputMatrix,
typename OutputVector>
4988 OutputMatrix &global_matrix,
4989 OutputVector &global_vector)
const
4991 Assert(this->dof_handler !=
nullptr,
4992 (
typename std::decay_t<
decltype(*
this)>::ExcInvalidObject()));
4993 Assert(local_matrix.
m() == this->get_fe().n_dofs_per_cell(),
4994 (
typename std::decay_t<
decltype(*
this)>::ExcMatrixDoesNotMatch()));
4995 Assert(local_matrix.
n() == this->get_fe().n_dofs_per_cell(),
4996 (
typename std::decay_t<
decltype(*
this)>::ExcVectorDoesNotMatch()));
4997 Assert(this->dof_handler->n_dofs() == global_matrix.m(),
4998 (
typename std::decay_t<
decltype(*
this)>::ExcMatrixDoesNotMatch()));
4999 Assert(this->dof_handler->n_dofs() == global_matrix.n(),
5000 (
typename std::decay_t<
decltype(*
this)>::ExcMatrixDoesNotMatch()));
5001 Assert(local_vector.
size() == this->get_fe().n_dofs_per_cell(),
5002 (
typename std::decay_t<
decltype(*
this)>::ExcVectorDoesNotMatch()));
5003 Assert(this->dof_handler->n_dofs() == global_vector.size(),
5004 (
typename std::decay_t<
decltype(*
this)>::ExcVectorDoesNotMatch()));
5008 const unsigned int n_dofs = this->get_fe().n_dofs_per_cell();
5010 dof_indices(n_dofs);
5012 *
this, dof_indices, this->active_fe_index());
5015 for (
unsigned int i = 0; i < n_dofs; ++i)
5017 global_matrix.add(dof_indices[i],
5020 &local_matrix(i, 0));
5021 global_vector(dof_indices[i]) += local_vector(i);
ArrayView< std::remove_reference_t< typename std::iterator_traits< Iterator >::reference >, MemorySpaceType > make_array_view(const Iterator begin, const Iterator end)
void get_dof_values(const VectorType &global_vector, ForwardIteratorInd local_indices_begin, ForwardIteratorVec local_vector_begin, ForwardIteratorVec local_vector_end) const
void distribute_local_to_global(const InVector &local_vector, const std::vector< size_type > &local_dof_indices, OutVector &global_vector) const
DoFAccessor< 0, 1, spacedim, level_dof_access > & operator=(const DoFAccessor< 0, 1, spacedim, level_dof_access > &da)=delete
DoFAccessor< 0, 1, spacedim, level_dof_access > & operator=(DoFAccessor< 0, 1, spacedim, level_dof_access > &&) noexcept=default
DoFAccessor(DoFAccessor< 0, 1, spacedim, level_dof_access > &&)=default
DoFAccessor(const DoFAccessor< 0, 1, spacedim, level_dof_access > &)=default
typename::internal::DoFHandlerImplementation::Iterators< dim, spacedim, level_dof_access >::line_iterator line(const unsigned int i) const
friend struct ::internal::DoFHandlerImplementation::Policy::Implementation
static constexpr unsigned int space_dimension
const DoFHandler< dim, spacedim > & get_dof_handler() const
void set_mg_dof_index(const int level, const unsigned int i, const types::global_dof_index index) const
DoFAccessor< structdim, dim, spacedim, level_dof_access > & operator=(const DoFAccessor< structdim, dim, spacedim, level_dof_access > &da)=delete
types::fe_index nth_active_fe_index(const unsigned int n) const
DoFAccessor(DoFAccessor< structdim, dim, spacedim, level_dof_access > &&)
DoFAccessor(const DoFAccessor< structdim, dim, spacedim, level_dof_access2 > &)
TriaIterator< DoFAccessor< structdim, dim, spacedim, level_dof_access > > child(const unsigned int c) const
void set_mg_vertex_dof_index(const int level, const unsigned int vertex, const unsigned int i, const types::global_dof_index index, const types::fe_index fe_index=numbers::invalid_fe_index) const
static constexpr unsigned int dimension
void set_dof_handler(DoFHandler< dim, spacedim > *dh)
DoFAccessor(const DoFAccessor< structdim2, dim2, spacedim2, level_dof_access2 > &)
DoFAccessor< structdim, dim, spacedim, level_dof_access > & operator=(DoFAccessor< structdim, dim, spacedim, level_dof_access > &&)
std::set< types::fe_index > get_active_fe_indices() const
DoFAccessor(const DoFAccessor< structdim, dim, spacedim, level_dof_access > &)=default
void set_mg_dof_indices(const int level, const std::vector< types::global_dof_index > &dof_indices, const types::fe_index fe_index=numbers::invalid_fe_index)
void get_mg_dof_indices(const int level, std::vector< types::global_dof_index > &dof_indices, const types::fe_index fe_index=numbers::invalid_fe_index) const
types::global_dof_index mg_vertex_dof_index(const int level, const unsigned int vertex, const unsigned int i, const types::fe_index fe_index=numbers::invalid_fe_index) const
DoFAccessor(const Triangulation< dim, spacedim > *tria, const int level, const int index, const DoFHandler< dim, spacedim > *dof_handler)
bool operator!=(const DoFAccessor< structdim2, dim2, spacedim2, level_dof_access2 > &) const
void copy_from(const TriaAccessorBase< structdim, dim, spacedim > &da)
types::global_dof_index dof_index(const unsigned int i, const types::fe_index fe_index=numbers::invalid_fe_index) const
typename::internal::DoFHandlerImplementation::Iterators< dim, spacedim, level_dof_access >::quad_iterator quad(const unsigned int i) const
void copy_from(const DoFAccessor< structdim, dim, spacedim, level_dof_access2 > &a)
const FiniteElement< dim, spacedim > & get_fe(const types::fe_index fe_index) const
void get_dof_indices(std::vector< types::global_dof_index > &dof_indices, const types::fe_index fe_index=numbers::invalid_fe_index) const
bool operator==(const DoFAccessor< structdim2, dim2, spacedim2, level_dof_access2 > &) const
types::global_dof_index mg_dof_index(const int level, const unsigned int i) const
void set_dof_index(const unsigned int i, const types::global_dof_index index, const types::fe_index fe_index=numbers::invalid_fe_index) const
unsigned int n_active_fe_indices() const
static bool is_level_cell()
typename ::internal::DoFAccessorImplementation::Inheritance< structdim, dimension, space_dimension >::BaseClass BaseClass
types::global_dof_index vertex_dof_index(const unsigned int vertex, const unsigned int i, const types::fe_index fe_index=numbers::invalid_fe_index) const
DoFHandler< dim, spacedim > * dof_handler
DoFAccessor(const InvalidAccessor< structdim2, dim2, spacedim2 > &)
bool fe_index_is_active(const types::fe_index fe_index) const
boost::container::small_vector< TriaIterator< DoFCellAccessor< dimension_, space_dimension_, level_dof_access > >, GeometryInfo< dimension_ >::max_children_per_cell > child_iterators() const
DoFCellAccessor(DoFCellAccessor< dimension_, space_dimension_, level_dof_access > &&)=default
void get_active_or_mg_dof_indices(std::vector< types::global_dof_index > &dof_indices) const
void get_dof_values(const InputVector &values, Vector< number > &local_values) const
boost::container::small_vector< face_iterator, GeometryInfo< dimension_ >::faces_per_cell > face_iterators() const
types::fe_index future_fe_index() const
DoFCellAccessor< dimension_, space_dimension_, level_dof_access > & operator=(const DoFCellAccessor< dimension_, space_dimension_, level_dof_access > &da)=delete
const FiniteElement< dimension_, space_dimension_ > & get_fe() const
TriaIterator< DoFCellAccessor< dimension_, space_dimension_, level_dof_access > > child(const unsigned int i) const
DoFCellAccessor(const Triangulation< dimension_, space_dimension_ > *tria, const int level, const int index, const AccessorData *local_data)
void set_future_fe_index(const types::fe_index i) const
void distribute_local_to_global(const Vector< number > &local_source, OutputVector &global_destination) const
const FiniteElement< dimension_, space_dimension_ > & get_future_fe() const
TriaIterator< DoFCellAccessor< dimension_, space_dimension_, level_dof_access > > neighbor(const unsigned int i) const
void set_active_fe_index(const types::fe_index i) const
face_iterator face(const unsigned int i) const
void clear_future_fe_index() const
void set_dof_values(const Vector< number > &local_values, OutputVector &values) const
DoFCellAccessor(const DoFCellAccessor< dimension_, space_dimension_, level_dof_access > &)=default
~DoFCellAccessor()=default
bool future_fe_index_set() const
DoFCellAccessor< dimension_, space_dimension_, level_dof_access > & operator=(DoFCellAccessor< dimension_, space_dimension_, level_dof_access > &&)=default
types::fe_index active_fe_index() const
TriaIterator< DoFCellAccessor< dimension_, space_dimension_, level_dof_access > > parent() const
std::vector< std::unique_ptr<::internal::DoFHandlerImplementation::DoFLevel< dim > > > mg_levels
std::vector< std::vector< types::fe_index > > hp_cell_future_fe_indices
const FiniteElement< dim, spacedim > & get_fe(const types::fe_index index=0) const
std::vector< std::vector< types::fe_index > > hp_cell_active_fe_indices
std::vector< MGVertexDoFs > mg_vertex_dofs
std::vector< std::array< std::vector< types::global_dof_index >, dim+1 > > object_dof_indices
const Triangulation< dim, spacedim > & get_triangulation() const
std::vector< std::array< std::vector< offset_type >, dim+1 > > object_dof_ptr
std::unique_ptr<::internal::DoFHandlerImplementation::DoFFaces< dim > > mg_faces
bool hp_capability_enabled
bool has_hp_capabilities() const
std::array< std::vector< offset_type >, dim+1 > hp_object_fe_ptr
std::array< std::vector< types::fe_index >, dim+1 > hp_object_fe_indices
DoFInvalidAccessor(const void *parent=nullptr, const int level=-1, const int index=-1, const AccessorData *local_data=nullptr)
typename InvalidAccessor< structdim, dim, spacedim >::AccessorData AccessorData
unsigned int n_dofs_per_vertex() const
void add_indices(const ForwardIterator &begin, const ForwardIterator &end)
void import_elements(const ::Vector< Number > &vec, VectorOperation::values operation, const std::shared_ptr< const Utilities::MPI::CommunicationPatternBase > &communication_pattern={})
TriaIterator< TriaAccessor< structdim, dim, spacedim > > child(const unsigned int i) const
IteratorState::IteratorStates state() const
virtual size_type size() const override
#define DEAL_II_ALWAYS_INLINE
#define DEAL_II_NAMESPACE_OPEN
constexpr bool running_in_debug_mode()
#define DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_ASSERT_UNREACHABLE()
#define DEAL_II_NOT_IMPLEMENTED()
static ::ExceptionBase & ExcVectorNotEmpty()
#define DeclException0(Exception0)
static ::ExceptionBase & ExcNotImplemented()
#define Assert(cond, exc)
static ::ExceptionBase & ExcImpossibleInDim(int arg1)
static ::ExceptionBase & ExcNotActive()
#define AssertDimension(dim1, dim2)
static ::ExceptionBase & ExcMatrixDoesNotMatch()
#define AssertIndexRange(index, range)
#define DeclExceptionMsg(Exception, defaulttext)
static ::ExceptionBase & ExcInvalidObject()
static ::ExceptionBase & ExcInternalError()
static ::ExceptionBase & ExcCantCompareIterators()
static ::ExceptionBase & ExcVectorDoesNotMatch()
static ::ExceptionBase & ExcMessage(std::string arg1)
@ past_the_end
Iterator reached end of container.
types::fe_index get_fe_index_or_default(const DoFAccessor< structdim, dim, spacedim, level_dof_access > &cell, const types::fe_index fe_index)
void get_cell_dof_indices(const ::DoFCellAccessor< dim, spacedim, level_dof_access > &accessor, Implementation::dof_index_vector_type &dof_indices, const unsigned int fe_index)
TriaIterator< ::DoFAccessor< dim - 1, dim, spacedim, level_dof_access > > get_face(const ::DoFCellAccessor< dim, spacedim, level_dof_access > &cell, const unsigned int i, const std::integral_constant< int, 1 >)
Kokkos::RangePolicy< ExecutionSpace, Kokkos::IndexType< std::size_t > > Policy
constexpr types::global_dof_index invalid_dof_index
constexpr types::geometric_orientation reverse_line_orientation
constexpr types::geometric_orientation default_geometric_orientation
constexpr types::fe_index invalid_fe_index
::VectorizedArray< Number, width > min(const ::VectorizedArray< Number, width > &, const ::VectorizedArray< Number, width > &)
unsigned short int fe_index
void process_vertex_dofs(DoFHandler< dim, spacedim > &dof_handler, const unsigned int vertex_index, const types::fe_index fe_index, types::global_dof_index *&dof_indices_ptr, const DoFProcessor &dof_processor) const
void process_dofs(const DoFHandler< dim, spacedim > &dof_handler, const unsigned int obj_level, const unsigned int obj_index, const types::fe_index fe_index, const DoFMapping &mapping, const std::integral_constant< int, structdim >, types::global_dof_index *&dof_indices_ptr, const DoFProcessor &dof_processor) const
void process_dofs(const DoFHandler< dim, spacedim > &dof_handler, const unsigned int, const unsigned int obj_index, const types::fe_index fe_index, const DoFMapping &mapping, const std::integral_constant< int, structdim >, types::global_dof_index *&dof_indices_ptr, const DoFProcessor &dof_processor) const
MGDoFIndexProcessor(const unsigned int level)
void process_vertex_dofs(DoFHandler< dim, spacedim > &dof_handler, const unsigned int vertex_index, const types::fe_index, types::global_dof_index *&dof_indices_ptr, const DoFProcessor &dof_processor) const
static types::global_dof_index * get_array_ptr(const std::tuple<> &)
static void process_dof_indices(const ::DoFAccessor< structdim, dim, spacedim, level_dof_access > &accessor, const DoFIndicesType &const_dof_indices, const types::fe_index fe_index_, const DoFOperation &dof_operation, const DoFProcessor &dof_processor, const bool count_level_dofs)
static void get_dof_indices(const ::DoFAccessor< structdim, dim, spacedim, level_dof_access > &accessor, std::vector< types::global_dof_index > &dof_indices, const types::fe_index fe_index)
static void extract_subvector_to(const LinearAlgebra::TpetraWrappers::Vector< Number, MemorySpace > &values, const types::global_dof_index *cache_begin, const types::global_dof_index *cache_end, ForwardIterator local_values_begin)
static std::set< types::fe_index > get_active_fe_indices(const DoFHandler< dim, spacedim > &dof_handler, const unsigned int obj_level, const unsigned int obj_index, const std::integral_constant< int, structdim > &t)
static types::global_dof_index * get_array_ptr(const ArrayType &array)
static unsigned int get_array_length(const std::tuple<> &)
static types::global_dof_index * find_dof_index(const DoFHandler< dim, spacedim > &dof_handler, const unsigned int obj_level, const unsigned int obj_index, const types::fe_index fe_index, const unsigned int local_index, const std::integral_constant< int, structdim > &dd)
static unsigned int n_active_fe_indices(const DoFHandler< dim, spacedim > &dof_handler, const unsigned int obj_level, const unsigned int obj_index, const std::integral_constant< int, structdim > &)
static void set_dof_index(const DoFHandler< dim, spacedim > &dof_handler, const unsigned int obj_level, const unsigned int obj_index, const types::fe_index fe_index, const unsigned int local_index, const std::integral_constant< int, structdim > &dd, const types::global_dof_index global_index)
static void extract_subvector_to(const LinearAlgebra::EpetraWrappers::Vector &values, const types::global_dof_index *cache_begin, const types::global_dof_index *cache_end, ForwardIterator local_values_begin)
static void get_mg_dof_indices(const ::DoFAccessor< structdim, dim, spacedim, level_dof_access > &accessor, const int level, std::vector< types::global_dof_index > &dof_indices, const types::fe_index fe_index)
static bool fe_index_is_active(const DoFHandler< dim, spacedim > &dof_handler, const unsigned int obj_level, const unsigned int obj_index, const types::fe_index fe_index, const std::integral_constant< int, structdim > &)
static types::global_dof_index & get_mg_dof_index(const DoFHandler< dim, spacedim > &dof_handler, const std::unique_ptr< internal::DoFHandlerImplementation::DoFLevel< dim > > &, const std::unique_ptr< internal::DoFHandlerImplementation::DoFFaces< dim > > &mg_faces, const unsigned int obj_index, const types::fe_index fe_index, const unsigned int local_index, const std::integral_constant< int, 1 >)
boost::container::small_vector<::types::global_dof_index, 100 > dof_index_vector_type
static types::global_dof_index & get_mg_dof_index(const DoFHandler< dim, spacedim > &dof_handler, const std::unique_ptr< internal::DoFHandlerImplementation::DoFLevel< dim > > &mg_level, const std::unique_ptr< internal::DoFHandlerImplementation::DoFFaces< dim > > &, const unsigned int obj_index, const types::fe_index fe_index, const unsigned int local_index, const std::integral_constant< int, dim >)
static std::pair< unsigned int, unsigned int > process_object_range(const ::DoFAccessor< structdim, dim, spacedim, level_dof_access > accessor, const types::fe_index fe_index)
static types::global_dof_index & mg_vertex_dof_index(DoFHandler< dim, spacedim > &dof_handler, const int level, const unsigned int vertex_index, const unsigned int i)
static void set_mg_dof_indices(const ::DoFAccessor< structdim, dim, spacedim, level_dof_access > &accessor, const int level, const std::vector< types::global_dof_index > &dof_indices, const types::fe_index fe_index)
static void set_dof_indices(const ::DoFAccessor< structdim, dim, spacedim, level_dof_access > &accessor, const std::vector< types::global_dof_index > &dof_indices, const types::fe_index fe_index)
static types::global_dof_index & get_mg_dof_index(const DoFHandler< 3, spacedim > &dof_handler, const std::unique_ptr< internal::DoFHandlerImplementation::DoFLevel< 3 > > &, const std::unique_ptr< internal::DoFHandlerImplementation::DoFFaces< 3 > > &mg_faces, const unsigned int obj_index, const types::fe_index fe_index, const unsigned int local_index, const std::integral_constant< int, 2 >)
static std::pair< unsigned int, unsigned int > process_object_range(const DoFHandler< dim, spacedim > &dof_handler, const unsigned int obj_level, const unsigned int obj_index, const types::fe_index fe_index, const std::integral_constant< int, structdim > &)
static void extract_subvector_to(const InputVector &values, const types::global_dof_index *cache, const types::global_dof_index *cache_end, ForwardIterator local_values_begin)
static std::vector< unsigned int > sort_indices(const types::global_dof_index *v_begin, const types::global_dof_index *v_end)
static types::fe_index nth_active_fe_index(const DoFHandler< dim, spacedim > &dof_handler, const unsigned int obj_level, const unsigned int obj_index, const unsigned int local_index, const std::integral_constant< int, structdim > &)
static void process_object(const DoFHandler< dim, spacedim > &dof_handler, const unsigned int obj_level, const unsigned int obj_index, const types::fe_index fe_index, const DoFMapping &mapping, const std::integral_constant< int, structdim > &dd, types::global_dof_index *&dof_indices_ptr, const DoFProcessor &process)
static types::global_dof_index get_dof_index(const DoFHandler< dim, spacedim > &dof_handler, const unsigned int obj_level, const unsigned int obj_index, const types::fe_index fe_index, const unsigned int local_index, const std::integral_constant< int, structdim > &dd)
static unsigned int n_dof_indices(const ::DoFAccessor< structdim, dim, spacedim, level_dof_access > &accessor, const types::fe_index fe_index_, const bool count_level_dofs)
static std::pair< unsigned int, unsigned int > process_object_range(::DoFInvalidAccessor< structdim, dim, spacedim >, const unsigned int)
static unsigned int get_array_length(const ArrayType &array)
static types::fe_index future_fe_index(const DoFCellAccessor< dim, spacedim, level_dof_access > &accessor)
static void clear_future_fe_index(const DoFCellAccessor< dim, spacedim, level_dof_access > &accessor)
static bool future_fe_index_set(const DoFCellAccessor< dim, spacedim, level_dof_access > &accessor)
static void set_active_fe_index(const DoFCellAccessor< dim, spacedim, level_dof_access > &accessor, const types::fe_index i)
static void set_future_fe_index(const DoFCellAccessor< dim, spacedim, level_dof_access > &accessor, const types::fe_index i)
static types::fe_index active_fe_index(const DoFCellAccessor< dim, spacedim, level_dof_access > &accessor)